summaryrefslogtreecommitdiffstats
path: root/korn/keditlistboxman.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korn/keditlistboxman.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
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
Diffstat (limited to 'korn/keditlistboxman.cpp')
-rw-r--r--korn/keditlistboxman.cpp22
1 files changed, 11 insertions, 11 deletions
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 <tqmap.h>
#include <tqstring.h>
-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