~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to lib/kofficeui/koPartSelectDia.cc

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <kiconloader.h>
23
23
#include <klocale.h>
24
 
#include <kapp.h>
25
 
#include <qpainter.h>
26
 
#include <qpixmap.h>
27
24
#include <qlistview.h>
28
 
#include <qobjectlist.h>
29
 
#include <qpushbutton.h>
30
25
 
31
26
/****************************************************
32
27
 *
53
48
    QValueList<KoDocumentEntry>::Iterator it = m_lstEntries.begin();
54
49
    for( ; it != m_lstEntries.end(); ++it ) {
55
50
        KService::Ptr serv = (*it).service();
56
 
        QListViewItem *item = new QListViewItem( listview, serv->name(), serv->comment() );
57
 
        item->setPixmap( 0, SmallIcon( serv->icon() ) );
 
51
        if (!serv->genericName().isEmpty()) {
 
52
            QListViewItem *item = new QListViewItem( listview, serv->name(), serv->genericName() );
 
53
            item->setPixmap( 0, SmallIcon( serv->icon() ) );
 
54
        }
58
55
    }
59
56
 
60
57
    selectionChanged( 0 );