diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmpluginsettings.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmpluginsettings.cpp')
-rw-r--r-- | kpovmodeler/pmpluginsettings.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kpovmodeler/pmpluginsettings.cpp b/kpovmodeler/pmpluginsettings.cpp index 0a635845..95f75e72 100644 --- a/kpovmodeler/pmpluginsettings.cpp +++ b/kpovmodeler/pmpluginsettings.cpp @@ -25,22 +25,22 @@ #include <tqpushbutton.h> #include <klocale.h> -class PMPluginListViewItem : public QListViewItem +class PMPluginListViewItem : public TQListViewItem { public: - PMPluginListViewItem( TQListView* parent, PMPluginInfo* info ) - : TQListViewItem( parent, info->name( ), info->description( ) ) + PMPluginListViewItem( TQListView* tqparent, PMPluginInfo* info ) + : TQListViewItem( tqparent, info->name( ), info->description( ) ) { m_info = info; m_enabled = info->enabled( ); - setStatus( ); + settqStatus( ); } - void toggleStatus( ) + void toggletqStatus( ) { m_enabled = !m_enabled; - setStatus( ); + settqStatus( ); } - void setStatus( ) + void settqStatus( ) { if( m_enabled ) setText( 2, i18n( "loaded" ) ); @@ -51,13 +51,13 @@ public: bool m_enabled; }; -PMPluginSettings::PMPluginSettings( TQWidget* parent, const char* name ) - : PMSettingsDialogPage( parent, name ) +PMPluginSettings::PMPluginSettings( TQWidget* tqparent, const char* name ) + : PMSettingsDialogPage( tqparent, name ) { - TQVBoxLayout* vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) ); + TQVBoxLayout* vtqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) ); TQGroupBox* gb = new TQGroupBox( i18n( "Installed Plugins" ), this ); - vlayout->addWidget( gb ); + vtqlayout->addWidget( gb ); TQVBoxLayout* gvl = new TQVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) ); gvl->addSpacing( 10 ); @@ -67,7 +67,7 @@ PMPluginSettings::PMPluginSettings( TQWidget* parent, const char* name ) TQT_SLOT( slotSelectionChanged( ) ) ); m_pPluginsList->addColumn( i18n( "Name" ) ); m_pPluginsList->addColumn( i18n( "Description" ) ); - m_pPluginsList->addColumn( i18n( "Status" ) ); + m_pPluginsList->addColumn( i18n( "tqStatus" ) ); gvl->addWidget( m_pPluginsList, 1 ); TQHBoxLayout* hl = new TQHBoxLayout( gvl ); @@ -77,7 +77,7 @@ PMPluginSettings::PMPluginSettings( TQWidget* parent, const char* name ) hl->addWidget( m_pToggle ); hl->addStretch( 1 ); - vlayout->addStretch( 1 ); + vtqlayout->addStretch( 1 ); } void PMPluginSettings::displaySettings( ) @@ -122,7 +122,7 @@ void PMPluginSettings::slotToggle( ) ( PMPluginListViewItem* ) m_pPluginsList->currentItem( ); if( item ) { - item->toggleStatus( ); + item->toggletqStatus( ); if( item->m_enabled ) m_pToggle->setText( i18n( "Deactivate" ) ); |