summaryrefslogtreecommitdiffstats
path: root/korn/keditlistboxman.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
commit716a5de8870d7c02bb4d0aed72f30291b17b763a (patch)
tree29e58b213ead28151ccf7eb33d12c968ea844120 /korn/keditlistboxman.cpp
parent0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (diff)
downloadtdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.tar.gz
tdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'korn/keditlistboxman.cpp')
-rw-r--r--korn/keditlistboxman.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/korn/keditlistboxman.cpp b/korn/keditlistboxman.cpp
index d5ae323a5..d3dce86e0 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->tqarg( number ) ) )
+ while( _config->hasGroup( _groupName->arg( number ) ) )
{
- _config->setGroup( _groupName->tqarg( number ) );
+ _config->setGroup( _groupName->arg( 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->tqarg( this->currentItem() ) );
+ _config->setGroup( _groupName->arg( 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->tqarg( number ) ) )
+ while( _config->hasGroup( _groupName->arg( number ) ) )
++number;
- _config->setGroup( _groupName->tqarg( number ) );
+ _config->setGroup( _groupName->arg( 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->tqarg( number ) ) )
+ if( !_config->hasGroup( _groupName->arg( number ) ) )
{
number = -1; //not found
break;
}
- _config->setGroup( _groupName->tqarg( number ) );
+ _config->setGroup( _groupName->arg( 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->tqarg( number ), true, false );
+ _config->deleteGroup( _groupName->arg( number ), true, false );
emit elementDeleted( number );
- while( _subGroupName && _config->hasGroup( _subGroupName->tqarg( number ).tqarg( subnumber ) ) )
+ while( _subGroupName && _config->hasGroup( _subGroupName->arg( number ).arg( subnumber ) ) )
{
- _config->deleteGroup( _subGroupName->tqarg( number ).tqarg( subnumber ) );
+ _config->deleteGroup( _subGroupName->arg( number ).arg( subnumber ) );
++subnumber;
}
//rotate groups
- while( _config->hasGroup( _groupName->tqarg( number + 1 ) ) )
+ while( _config->hasGroup( _groupName->arg( 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->tqarg( src ) );
- _config->deleteGroup( _groupName->tqarg( src ) );
+ *srcList = _config->entryMap( _groupName->arg( src ) );
+ _config->deleteGroup( _groupName->arg( src ) );
- _config->setGroup( _groupName->tqarg( dest ) );
+ _config->setGroup( _groupName->arg( dest ) );
for( it = srcList->begin(); it != srcList->end(); ++it )
_config->writeEntry( it.key(), it.data() );
- while( _subGroupName && _config->hasGroup( _subGroupName->tqarg( src ).tqarg( subnumber ) ) )
+ while( _subGroupName && _config->hasGroup( _subGroupName->arg( src ).arg( subnumber ) ) )
{
- _config->deleteGroup( _subGroupName->tqarg( dest ).tqarg( subnumber ) );
- _config->setGroup( _subGroupName->tqarg( dest ).tqarg( subnumber ) );
+ _config->deleteGroup( _subGroupName->arg( dest ).arg( subnumber ) );
+ _config->setGroup( _subGroupName->arg( dest ).arg( 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->tqarg( first ) );
- *lastList = _config->entryMap( _groupName->tqarg( last ) );
- _config->deleteGroup( _groupName->tqarg( first ) );
- _config->deleteGroup( _groupName->tqarg( last ) );
+ *firstList = _config->entryMap( _groupName->arg( first ) );
+ *lastList = _config->entryMap( _groupName->arg( last ) );
+ _config->deleteGroup( _groupName->arg( first ) );
+ _config->deleteGroup( _groupName->arg( last ) );
- _config->setGroup( _groupName->tqarg( last ) );
+ _config->setGroup( _groupName->arg( last ) );
for( it = firstList->begin(); it != firstList->end(); ++it )
_config->writeEntry( it.key(), it.data() );
- _config->setGroup( _groupName->tqarg( first ) );
+ _config->setGroup( _groupName->arg( first ) );
for( it = lastList->begin(); it != lastList->end(); ++it )
_config->writeEntry( it.key(), it.data() );
while( _subGroupName && (
- _config->hasGroup( _subGroupName->tqarg( first ).tqarg( subnumber ) ) ||
- _config->hasGroup( _subGroupName->tqarg( last ).tqarg( subnumber ) ) ) )
+ _config->hasGroup( _subGroupName->arg( first ).arg( subnumber ) ) ||
+ _config->hasGroup( _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 ) );
+ *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 ) );
- _config->setGroup( _subGroupName->tqarg( last ).tqarg( subnumber ) );
+ _config->setGroup( _subGroupName->arg( last ).arg( subnumber ) );
for( it = firstList->begin(); it != firstList->end(); ++it )
_config->writeEntry( it.key(), it.data() );
- _config->setGroup( _subGroupName->tqarg( first ).tqarg( subnumber ) );
+ _config->setGroup( _subGroupName->arg( first ).arg( 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->tqarg( this->currentItem() ) );
+ _config->setGroup( _groupName->arg( this->currentItem() ) );
_config->writeEntry( "name", this->currentText() );
}