diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:49:30 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:49:30 -0600 |
commit | a9bde819f2b421dcc44741156e75eca4bb5fb4f4 (patch) | |
tree | d087071b1e8fcf79698938efec19f8e48bab0799 /libtdepim/addresseelineedit.cpp | |
parent | 5c4a80ead2b1fe57dc6a8c29d0368792344cd61e (diff) | |
download | tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.tar.gz tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'libtdepim/addresseelineedit.cpp')
-rw-r--r-- | libtdepim/addresseelineedit.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libtdepim/addresseelineedit.cpp b/libtdepim/addresseelineedit.cpp index d076fd3d4..3b55024b6 100644 --- a/libtdepim/addresseelineedit.cpp +++ b/libtdepim/addresseelineedit.cpp @@ -419,9 +419,9 @@ void AddresseeLineEdit::doCompletion( bool ctrlT ) { m_lastSearchMode = ctrlT; - KGlobalSettings::Completion mode = completionMode(); + TDEGlobalSettings::Completion mode = completionMode(); - if ( mode == KGlobalSettings::CompletionNone ) + if ( mode == TDEGlobalSettings::CompletionNone ) return; if ( s_addressesDirty ) { @@ -447,20 +447,20 @@ void AddresseeLineEdit::doCompletion( bool ctrlT ) switch ( mode ) { - case KGlobalSettings::CompletionPopupAuto: + case TDEGlobalSettings::CompletionPopupAuto: { if ( m_searchString.isEmpty() ) break; } - case KGlobalSettings::CompletionPopup: + case TDEGlobalSettings::CompletionPopup: { const TQStringList items = getAdjustedCompletionItems( true ); setCompletedItems( items, false ); break; } - case KGlobalSettings::CompletionShell: + case TDEGlobalSettings::CompletionShell: { TQString match = s_completion->makeCompletion( m_searchString ); if ( !match.isNull() && match != m_searchString ) { @@ -471,8 +471,8 @@ void AddresseeLineEdit::doCompletion( bool ctrlT ) break; } - case KGlobalSettings::CompletionMan: // Short-Auto in fact - case KGlobalSettings::CompletionAuto: + case TDEGlobalSettings::CompletionMan: // Short-Auto in fact + case TDEGlobalSettings::CompletionAuto: { //force autoSuggest in KLineEdit::keyPressed or setCompletedText will have no effect setCompletionMode( completionMode() ); @@ -521,7 +521,7 @@ void AddresseeLineEdit::doCompletion( bool ctrlT ) break; } - case KGlobalSettings::CompletionNone: + case TDEGlobalSettings::CompletionNone: default: // fall through break; } @@ -594,7 +594,7 @@ void AddresseeLineEdit::loadContacts() int idx = addCompletionSource( i18n( "Distribution Lists" ) ); for ( listIt = distLists.begin(); listIt != distLists.end(); ++listIt ) { - //for KGlobalSettings::CompletionAuto + //for TDEGlobalSettings::CompletionAuto addCompletionItem( (*listIt).simplifyWhiteSpace(), weight, idx ); //for CompletionShell, CompletionPopup @@ -773,9 +773,9 @@ void AddresseeLineEdit::addCompletionItem( const TQString& string, int weight, i void AddresseeLineEdit::slotStartLDAPLookup() { - KGlobalSettings::Completion mode = completionMode(); + TDEGlobalSettings::Completion mode = completionMode(); - if ( mode == KGlobalSettings::CompletionNone ) + if ( mode == TDEGlobalSettings::CompletionNone ) return; if ( !s_LDAPSearch->isAvailable() ) { @@ -828,8 +828,8 @@ void AddresseeLineEdit::slotLDAPSearchData( const KPIM::LdapResultList& adrs ) } if ( (hasFocus() || completionBox()->hasFocus() ) - && completionMode() != KGlobalSettings::CompletionNone - && completionMode() != KGlobalSettings::CompletionShell ) { + && completionMode() != TDEGlobalSettings::CompletionNone + && completionMode() != TDEGlobalSettings::CompletionShell ) { setText( m_previousAddresses + m_searchString ); // only complete again if the user didn't change the selection while we were waiting // otherwise the completion box will be closed |