summaryrefslogtreecommitdiffstats
path: root/korn/keditlistboxman.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /korn/keditlistboxman.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 cb3066727..44ef514c4 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() );
}