From 988c8e0a88b3b7418865247fd663dfe77e4422c4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 21 Jan 2025 17:20:19 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- src/profiledialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/profiledialog.cpp') diff --git a/src/profiledialog.cpp b/src/profiledialog.cpp index df52ee3..470d831 100644 --- a/src/profiledialog.cpp +++ b/src/profiledialog.cpp @@ -65,7 +65,7 @@ ProfileDialog::ProfileDialog( Action action, // ===================== bool ProfileDialog::checkForDuplicateName( const TQString& profileName ) -{ if( !kapp->config( )->hasGroup( PROFILE_PREFIX + profileName )) +{ if( !tdeApp->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( kapp->config( )->hasGroup( profileName )) + while( tdeApp->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 map = kapp->config( )->entryMap( PROFILE_PREFIX + fromProfileName ); - kapp->config( )->setGroup( PROFILE_PREFIX + toProfileName ); +{ TQMap map = tdeApp->config( )->entryMap( PROFILE_PREFIX + fromProfileName ); + tdeApp->config( )->setGroup( PROFILE_PREFIX + toProfileName ); for( TQMap::Iterator it = map.begin( ); it != map.end( ); ++it ) - kapp->config( )->writeEntry( it.key( ), it.data( )); + tdeApp->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( !kapp->config( )->hasGroup( PROFILE_PREFIX + profileName )) +{ if( !tdeApp->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; - kapp->config( )->deleteGroup( PROFILE_PREFIX + item->text( )); + tdeApp->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 = kapp->config( )->groupList( ); + TQStringList profileList = tdeApp->config( )->groupList( ); ushort i; TQStringList::Iterator it; -- cgit v1.2.3