@ -65,7 +65,7 @@ ProfileDialog::ProfileDialog( Action action,
// =====================
bool ProfileDialog : : checkForDuplicateName ( const TQString & profileName )
{ if ( ! ka pp- > config ( ) - > hasGroup ( PROFILE_PREFIX + profileName ) )
{ if ( ! tdeA pp- > config ( ) - > hasGroup ( PROFILE_PREFIX + profileName ) )
return true ;
KMessageBox : : sorry ( this , TQString ( i18n ( " Profile \" %1 \" already exists, please choose another name or press 'Cancel' " ) ) . arg ( profileName ) , i18n ( " Duplicate profile name " ) ) ;
@ -78,7 +78,7 @@ bool ProfileDialog::checkForDuplicateName( const TQString& profileName )
TQString ProfileDialog : : constructNewProfileName ( const TQString & initialProfileName ) const
{ TQString profileName = PROFILE_PREFIX + initialProfileName + " _copy " ;
while ( ka pp- > config ( ) - > hasGroup ( profileName ) )
while ( tdeA pp- > config ( ) - > hasGroup ( profileName ) )
profileName + = " _copy " ;
return stripPrefix ( profileName ) ;
@ -88,11 +88,11 @@ TQString ProfileDialog::constructNewProfileName( const TQString& initialProfileN
// ====
void ProfileDialog : : copy ( const TQString & fromProfileName , const TQString & toProfileName )
{ TQMap < TQString , TQString > map = ka pp- > config ( ) - > entryMap ( PROFILE_PREFIX + fromProfileName ) ;
ka pp- > config ( ) - > setGroup ( PROFILE_PREFIX + toProfileName ) ;
{ TQMap < TQString , TQString > map = tdeA pp- > config ( ) - > entryMap ( PROFILE_PREFIX + fromProfileName ) ;
tdeA pp- > config ( ) - > setGroup ( PROFILE_PREFIX + toProfileName ) ;
for ( TQMap < TQString , TQString > : : Iterator it = map . begin ( ) ; it ! = map . end ( ) ; + + it )
ka pp- > config ( ) - > writeEntry ( it . key ( ) , it . data ( ) ) ;
tdeA pp- > config ( ) - > writeEntry ( it . key ( ) , it . data ( ) ) ;
m_profileListBox - > insertItem ( toProfileName ) ;
m_profileListBox - > sort ( ) ;
@ -135,7 +135,7 @@ void ProfileDialog::createlayout( )
// =======
void ProfileDialog : : deelete ( const TQString & profileName , const bool ask )
{ if ( ! ka pp- > config ( ) - > hasGroup ( PROFILE_PREFIX + profileName ) )
{ if ( ! tdeA pp- > config ( ) - > hasGroup ( PROFILE_PREFIX + profileName ) )
{ Q_ASSERT ( false ) ;
return ;
}
@ -156,7 +156,7 @@ void ProfileDialog::deelete( TQListBoxItem* item, const bool ask )
i18n ( " Confirm profile deletion " ) ) )
return ;
ka pp- > config ( ) - > deleteGroup ( PROFILE_PREFIX + item - > text ( ) ) ;
tdeA pp- > config ( ) - > deleteGroup ( PROFILE_PREFIX + item - > text ( ) ) ;
m_profileListBox - > takeItem ( item ) ;
delete item ;
}
@ -184,7 +184,7 @@ bool ProfileDialog::getNewProfileName( TQString& profileName )
void ProfileDialog : : setInitialValues ( const TQString & currentProfile )
{ ushort currentItem = ushort ( - 1 ) ;
TQStringList profileList = ka pp- > config ( ) - > groupList ( ) ;
TQStringList profileList = tdeA pp- > config ( ) - > groupList ( ) ;
ushort i ;
TQStringList : : Iterator it ;