From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korn/keditlistboxman.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'korn/keditlistboxman.cpp') diff --git a/korn/keditlistboxman.cpp b/korn/keditlistboxman.cpp index cab1d777a..cb3066727 100644 --- a/korn/keditlistboxman.cpp +++ b/korn/keditlistboxman.cpp @@ -24,9 +24,9 @@ #include #include -KEditListBoxManager::KEditListBoxManager( TQWidget *parent, const char *name, +KEditListBoxManager::KEditListBoxManager( TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons ) - : KEditListBox( parent, name, checkAtEntering, buttons ), + : KEditListBox( tqparent, name, checkAtEntering, buttons ), _config( 0 ), _groupName( 0 ), _subGroupName( 0 ), @@ -35,10 +35,10 @@ KEditListBoxManager::KEditListBoxManager( TQWidget *parent, const char *name, init(); } -KEditListBoxManager::KEditListBoxManager( const TQString& title, TQWidget *parent, +KEditListBoxManager::KEditListBoxManager( const TQString& title, TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons) - : KEditListBox( title, parent, name, checkAtEntering, buttons ), + : KEditListBox( title, tqparent, name, checkAtEntering, buttons ), _config( 0 ), _groupName( 0 ), _subGroupName( 0 ), @@ -49,9 +49,9 @@ KEditListBoxManager::KEditListBoxManager( const TQString& title, TQWidget *paren KEditListBoxManager::KEditListBoxManager( const TQString& title, const KEditListBox::CustomEditor &customEditor, - TQWidget *parent, const char *name, + TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons ) - : KEditListBox( title, customEditor, parent, name, checkAtEntering, buttons ), + : KEditListBox( title, customEditor, tqparent, name, checkAtEntering, buttons ), _config( 0 ), _groupName( 0 ), _subGroupName( 0 ), @@ -112,7 +112,7 @@ void KEditListBoxManager::readNames() while( _config->hasGroup( _groupName->arg( number ) ) ) { _config->setGroup( _groupName->arg( number ) ); - this->insertItem( _config->readEntry( "name", TQString::null ) ); + this->insertItem( _config->readEntry( "name", TQString() ) ); ++number; } @@ -140,12 +140,12 @@ void KEditListBoxManager::slotChanged() _config->setGroup( _groupName->arg( this->currentItem() ) ); - if( this->currentItem() > 0 && this->text( this->currentItem() - 1 ) == _config->readEntry( "name", TQString::null ) ) + if( this->currentItem() > 0 && this->text( this->currentItem() - 1 ) == _config->readEntry( "name", TQString() ) ) changeItem( this->currentItem() - 1, this->currentItem() ); //moved down else if( this->currentItem() < this->count() - 1 && - this->text( this->currentItem() + 1 ) == _config->readEntry( "name", TQString::null ) ) + this->text( this->currentItem() + 1 ) == _config->readEntry( "name", TQString() ) ) changeItem( this->currentItem(), this->currentItem() + 1 ); //moved up - else if( this->currentText() != _config->readEntry( "name", TQString::null ) ) + else if( this->currentText() != _config->readEntry( "name", TQString() ) ) changedText(); //changed } @@ -186,7 +186,7 @@ void KEditListBoxManager::slotRemoved( const TQString& name ) break; } _config->setGroup( _groupName->arg( number ) ); - if( name == _config->readEntry( "name", TQString::null ) ) + if( name == _config->readEntry( "name", TQString() ) ) break; //found ++number; //Try next group -- cgit v1.2.1