diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-21 17:20:19 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-21 17:20:19 +0900 |
| commit | 988c8e0a88b3b7418865247fd663dfe77e4422c4 (patch) | |
| tree | 6b318fa901bdc49f431ba41a1e48f6cb2e7955f9 /src/profiledialog.cpp | |
| parent | c9260f2315b936aeb09fa117c965e8c603598d4d (diff) | |
| download | knmap-988c8e0a88b3b7418865247fd663dfe77e4422c4.tar.gz knmap-988c8e0a88b3b7418865247fd663dfe77e4422c4.zip | |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/profiledialog.cpp')
| -rw-r--r-- | src/profiledialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<TQString, TQString> map = kapp->config( )->entryMap( PROFILE_PREFIX + fromProfileName ); - kapp->config( )->setGroup( PROFILE_PREFIX + toProfileName ); +{ TQMap<TQString, TQString> map = tdeApp->config( )->entryMap( PROFILE_PREFIX + fromProfileName ); + tdeApp->config( )->setGroup( PROFILE_PREFIX + toProfileName ); for( TQMap<TQString, TQString>::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; |
