diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:34:02 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:34:02 -0600 |
commit | b5b62ae9b3c8396bb74d76a125f1a9349e8b1233 (patch) | |
tree | 3ad39c072d291299b6d8b8a49f872ecf80b61f1c /systemsettings/modulesview.cpp | |
parent | f191e6da45dcd3fe7c95f4791e75ea6106e4fc68 (diff) | |
download | tde-systemsettings-b5b62ae9b3c8396bb74d76a125f1a9349e8b1233.tar.gz tde-systemsettings-b5b62ae9b3c8396bb74d76a125f1a9349e8b1233.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'systemsettings/modulesview.cpp')
-rw-r--r-- | systemsettings/modulesview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/systemsettings/modulesview.cpp b/systemsettings/modulesview.cpp index ef920f1..a963058 100644 --- a/systemsettings/modulesview.cpp +++ b/systemsettings/modulesview.cpp @@ -23,7 +23,7 @@ #include <tqlabel.h> #include <klocale.h> #include <kservicegroup.h> -#include <tqlayout.h> +#include <layout.h> #include <kiconloader.h> #include <kcmultidialog.h> #include <kdialogbase.h> @@ -43,7 +43,7 @@ ModulesView::ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWi this->rootMenu = rootMenu; this->menuPath = menuPath; - TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 11, 6, "tqlayout" ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 11, 6, "layout" ); displayName = this->rootMenu->caption; @@ -58,13 +58,13 @@ ModulesView::ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWi TQFrame *line = new TQFrame( this, "line"); line->setFrameShadow( TQFrame::Sunken ); line->setFrameShape( TQFrame::HLine ); - tqlayout->addWidget( line ); + layout->addWidget( line ); } // Build the row of modules/icons - createRow( (*it).subMenu, tqlayout ); + createRow( (*it).subMenu, layout ); } - tqlayout->addStretch(1); + layout->addStretch(1); // Make empty iconView for the search widget if( groups.count()==0 ) { @@ -112,14 +112,14 @@ void ModulesView::createRow( const TQString &parentPath, TQBoxLayout *boxLayout // Heaer Icon TQLabel *icon = new TQLabel( this, "groupicon" ); icon->setPixmap( SmallIcon( group->icon() ) ); - icon->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, + icon->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, icon->sizePolicy().hasHeightForWidth() ) ); rowLayout->addWidget( icon ); // Header Name TQLabel *textLabel = new TQLabel( this, "groupcaption" ); textLabel->setText( group->caption() ); - textLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, + textLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, textLabel->sizePolicy().hasHeightForWidth())); TQFont textLabel_font( textLabel->font() ); textLabel_font.setBold( true ); @@ -160,7 +160,7 @@ void ModulesView::createRow( const TQString &parentPath, TQBoxLayout *boxLayout } // Force the height for those items that have two words. - iconView->setMinimumHeight( iconView->tqminimumSizeHint().height() ); + iconView->setMinimumHeight( iconView->minimumSizeHint().height() ); } void ModulesView::clearSelection() { |