diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
commit | 9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch) | |
tree | ab537a329b9613e11dce8195761f93ffe82aed24 /korn/keditlistboxman.cpp | |
parent | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff) | |
download | tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'korn/keditlistboxman.cpp')
-rw-r--r-- | korn/keditlistboxman.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/korn/keditlistboxman.cpp b/korn/keditlistboxman.cpp index d3dce86e0..d5ae323a5 100644 --- a/korn/keditlistboxman.cpp +++ b/korn/keditlistboxman.cpp @@ -109,9 +109,9 @@ void KEditListBoxManager::readNames() int number = 0; this->clear(); - while( _config->hasGroup( _groupName->arg( number ) ) ) + while( _config->hasGroup( _groupName->tqarg( number ) ) ) { - _config->setGroup( _groupName->arg( number ) ); + _config->setGroup( _groupName->tqarg( number ) ); this->insertItem( _config->readEntry( "name", TQString() ) ); ++number; } @@ -138,7 +138,7 @@ void KEditListBoxManager::slotChanged() //First check if the item was moved up - _config->setGroup( _groupName->arg( this->currentItem() ) ); + _config->setGroup( _groupName->tqarg( this->currentItem() ) ); if( this->currentItem() > 0 && this->text( this->currentItem() - 1 ) == _config->readEntry( "name", TQString() ) ) changeItem( this->currentItem() - 1, this->currentItem() ); //moved down @@ -158,10 +158,10 @@ void KEditListBoxManager::slotAdded( const TQString& name ) return; int number = 0; - while( _config->hasGroup( _groupName->arg( number ) ) ) + while( _config->hasGroup( _groupName->tqarg( number ) ) ) ++number; - _config->setGroup( _groupName->arg( number ) ); + _config->setGroup( _groupName->tqarg( number ) ); _config->writeEntry( "name", name ); emit setDefaults( name, number, _config ); @@ -180,12 +180,12 @@ void KEditListBoxManager::slotRemoved( const TQString& name ) int subnumber = 0; while( true ) { - if( !_config->hasGroup( _groupName->arg( number ) ) ) + if( !_config->hasGroup( _groupName->tqarg( number ) ) ) { number = -1; //not found break; } - _config->setGroup( _groupName->arg( number ) ); + _config->setGroup( _groupName->tqarg( number ) ); if( name == _config->readEntry( "name", TQString() ) ) break; //found @@ -195,16 +195,16 @@ void KEditListBoxManager::slotRemoved( const TQString& name ) if( number < 0 ) //failure return; //do nothing - _config->deleteGroup( _groupName->arg( number ), true, false ); + _config->deleteGroup( _groupName->tqarg( number ), true, false ); emit elementDeleted( number ); - while( _subGroupName && _config->hasGroup( _subGroupName->arg( number ).arg( subnumber ) ) ) + while( _subGroupName && _config->hasGroup( _subGroupName->tqarg( number ).tqarg( subnumber ) ) ) { - _config->deleteGroup( _subGroupName->arg( number ).arg( subnumber ) ); + _config->deleteGroup( _subGroupName->tqarg( number ).tqarg( subnumber ) ); ++subnumber; } //rotate groups - while( _config->hasGroup( _groupName->arg( number + 1 ) ) ) + while( _config->hasGroup( _groupName->tqarg( number + 1 ) ) ) { moveItem( number + 1, number ); @@ -224,17 +224,17 @@ void KEditListBoxManager::moveItem( int src, int dest ) TQMap<TQString, TQString>::iterator it; int subnumber = 0; - *srcList = _config->entryMap( _groupName->arg( src ) ); - _config->deleteGroup( _groupName->arg( src ) ); + *srcList = _config->entryMap( _groupName->tqarg( src ) ); + _config->deleteGroup( _groupName->tqarg( src ) ); - _config->setGroup( _groupName->arg( dest ) ); + _config->setGroup( _groupName->tqarg( dest ) ); for( it = srcList->begin(); it != srcList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); - while( _subGroupName && _config->hasGroup( _subGroupName->arg( src ).arg( subnumber ) ) ) + while( _subGroupName && _config->hasGroup( _subGroupName->tqarg( src ).tqarg( subnumber ) ) ) { - _config->deleteGroup( _subGroupName->arg( dest ).arg( subnumber ) ); - _config->setGroup( _subGroupName->arg( dest ).arg( subnumber ) ); + _config->deleteGroup( _subGroupName->tqarg( dest ).tqarg( subnumber ) ); + _config->setGroup( _subGroupName->tqarg( dest ).tqarg( subnumber ) ); for( it = srcList->begin(); it != srcList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); @@ -253,33 +253,33 @@ void KEditListBoxManager::changeItem( int first, int last ) TQMap<TQString, TQString>::iterator it; int subnumber = 0; - *firstList = _config->entryMap( _groupName->arg( first ) ); - *lastList = _config->entryMap( _groupName->arg( last ) ); - _config->deleteGroup( _groupName->arg( first ) ); - _config->deleteGroup( _groupName->arg( last ) ); + *firstList = _config->entryMap( _groupName->tqarg( first ) ); + *lastList = _config->entryMap( _groupName->tqarg( last ) ); + _config->deleteGroup( _groupName->tqarg( first ) ); + _config->deleteGroup( _groupName->tqarg( last ) ); - _config->setGroup( _groupName->arg( last ) ); + _config->setGroup( _groupName->tqarg( last ) ); for( it = firstList->begin(); it != firstList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); - _config->setGroup( _groupName->arg( first ) ); + _config->setGroup( _groupName->tqarg( first ) ); for( it = lastList->begin(); it != lastList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); while( _subGroupName && ( - _config->hasGroup( _subGroupName->arg( first ).arg( subnumber ) ) || - _config->hasGroup( _subGroupName->arg( last ).arg( subnumber ) ) ) ) + _config->hasGroup( _subGroupName->tqarg( first ).tqarg( subnumber ) ) || + _config->hasGroup( _subGroupName->tqarg( last ).tqarg( subnumber ) ) ) ) { - *firstList = _config->entryMap( _subGroupName->arg( first ).arg( subnumber ) ); - *lastList = _config->entryMap( _subGroupName->arg( last ).arg( subnumber ) ); - _config->deleteGroup( _subGroupName->arg( first ).arg( subnumber ) ); - _config->deleteGroup( _subGroupName->arg( last ).arg( subnumber ) ); + *firstList = _config->entryMap( _subGroupName->tqarg( first ).tqarg( subnumber ) ); + *lastList = _config->entryMap( _subGroupName->tqarg( last ).tqarg( subnumber ) ); + _config->deleteGroup( _subGroupName->tqarg( first ).tqarg( subnumber ) ); + _config->deleteGroup( _subGroupName->tqarg( last ).tqarg( subnumber ) ); - _config->setGroup( _subGroupName->arg( last ).arg( subnumber ) ); + _config->setGroup( _subGroupName->tqarg( last ).tqarg( subnumber ) ); for( it = firstList->begin(); it != firstList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); - _config->setGroup( _subGroupName->arg( first ).arg( subnumber ) ); + _config->setGroup( _subGroupName->tqarg( first ).tqarg( subnumber ) ); for( it = lastList->begin(); it != lastList->end(); ++it ) _config->writeEntry( it.key(), it.data() ); @@ -294,7 +294,7 @@ void KEditListBoxManager::changeItem( int first, int last ) void KEditListBoxManager::changedText() { - _config->setGroup( _groupName->arg( this->currentItem() ) ); + _config->setGroup( _groupName->tqarg( this->currentItem() ) ); _config->writeEntry( "name", this->currentText() ); } |