diff options
Diffstat (limited to 'systemsettings/modulesview.h')
-rw-r--r-- | systemsettings/modulesview.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/systemsettings/modulesview.h b/systemsettings/modulesview.h index 281e69c..f7cbcb3 100644 --- a/systemsettings/modulesview.h +++ b/systemsettings/modulesview.h @@ -30,14 +30,14 @@ class RowIconView : public KIconView { public: - RowIconView( QWidget* parent, const char *name=0 ) - : KIconView( parent, name ){ }; + RowIconView( TQWidget* tqparent, const char *name=0 ) + : KIconView( tqparent, name ){ }; // Figure out the hight/width to have only one row - QSize minimumSizeHint() const { + TQSize tqminimumSizeHint() const { int width = 0; /* - for ( QIconViewItem *item = firstItem(); item; item = item->nextItem() ) + for ( TQIconViewItem *item = firstItem(); item; item = item->nextItem() ) width += item->width(); width += spacing()*(count())+(margin()+frameWidth()+lineWidth()+midLineWidth())*2 ; */ @@ -45,7 +45,7 @@ public: width = count()*gridX()+frameWidth()*2; int height = 0; - for ( QIconViewItem *item = firstItem(); item; item = item->nextItem() ) + for ( TQIconViewItem *item = firstItem(); item; item = item->nextItem() ) if(item->height() > height) height = item->height(); // I honestly don't know where the 4+4 is coming from... @@ -59,41 +59,42 @@ public: int f = 2 * frameWidth(); int height = ( 2*h ) + f + spacing() * 2 + 32 + lineWidth()*2 + 10; */ - return QSize( width, height ); + return TQSize( width, height ); }; }; -class QBoxLayout; +class TQBoxLayout; class KCModuleMenu; /** * This widget contains the IconView's of all of the modules etc * It is the basic thing that users see. */ -class ModulesView : public QWidget +class ModulesView : public TQWidget { // To search the groups friend class KcmSearch; Q_OBJECT + TQ_OBJECT public: void clearSelection(); - QString displayName; + TQString displayName; signals: - void itemSelected( QIconViewItem* item ); + void itemSelected( TQIconViewItem* item ); public: - ModulesView( KCModuleMenu *rootMenu, const QString &menuPath, QWidget *parent=0, const char *name=0 ); + ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWidget *tqparent=0, const char *name=0 ); ~ModulesView(); private: - QValueList<RowIconView*> groups; + TQValueList<RowIconView*> groups; KCModuleMenu *rootMenu; - QString menuPath; + TQString menuPath; - void createRow( const QString &parentPath, QBoxLayout *layout ); + void createRow( const TQString &tqparentPath, TQBoxLayout *tqlayout ); }; #endif // MODULESVIEW_H |