summaryrefslogtreecommitdiffstats
path: root/kontact/src
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/src')
-rw-r--r--kontact/src/aboutdialog.cpp2
-rw-r--r--kontact/src/mainwindow.cpp6
-rw-r--r--kontact/src/profilemanager.cpp14
3 files changed, 11 insertions, 11 deletions
diff --git a/kontact/src/aboutdialog.cpp b/kontact/src/aboutdialog.cpp
index 02e48e771..1bbd0ef6c 100644
--- a/kontact/src/aboutdialog.cpp
+++ b/kontact/src/aboutdialog.cpp
@@ -93,7 +93,7 @@ void AboutDialog::addAboutData( const TQString &title, const TQString &icon,
text += "<a href=\"" + home + "\">" + home + "</a><br>";
}
- text.tqreplace( "\n", "<br>" );
+ text.replace( "\n", "<br>" );
KActiveLabel *label = new KActiveLabel( text, topFrame );
label->tqsetAlignment( AlignTop );
diff --git a/kontact/src/mainwindow.cpp b/kontact/src/mainwindow.cpp
index 8439b4fce..b719a57d5 100644
--- a/kontact/src/mainwindow.cpp
+++ b/kontact/src/mainwindow.cpp
@@ -226,7 +226,7 @@ void MainWindow::activatePluginModule()
if ( !mActiveModule.isEmpty() ) {
PluginList::ConstIterator end = mPlugins.end();
for ( PluginList::ConstIterator it = mPlugins.begin(); it != end; ++it )
- if ( ( *it )->identifier().tqcontains( mActiveModule ) ) {
+ if ( ( *it )->identifier().contains( mActiveModule ) ) {
selectPlugin( *it );
return;
}
@@ -828,7 +828,7 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin )
mPartsStack->raiseWidget( view );
view->show();
- if ( mFocusWidgets.tqcontains( plugin->identifier() ) ) {
+ if ( mFocusWidgets.contains( plugin->identifier() ) ) {
tqfocusWidget = mFocusWidgets[ plugin->identifier() ];
if ( tqfocusWidget )
tqfocusWidget->setFocus();
@@ -1101,7 +1101,7 @@ void MainWindow::readProperties( KConfig *config )
for ( ; it != end; ++it ) {
Plugin *plugin = *it;
if ( !plugin->isRunningStandalone() ) {
- TQStringList::ConstIterator activePlugin = activePlugins.tqfind( plugin->identifier() );
+ TQStringList::ConstIterator activePlugin = activePlugins.find( plugin->identifier() );
if ( activePlugin != activePlugins.end() ) {
plugin->readProperties( config );
}
diff --git a/kontact/src/profilemanager.cpp b/kontact/src/profilemanager.cpp
index 005779414..50b2a71d4 100644
--- a/kontact/src/profilemanager.cpp
+++ b/kontact/src/profilemanager.cpp
@@ -152,7 +152,7 @@ void Kontact::ProfileManager::writeConfig() const
Kontact::Profile Kontact::ProfileManager::readFromConfiguration( const TQString& configFile, bool isLocal )
{
KConfig profileCfg( configFile, true /*read-only*/, false /*no KDE global*/ );
- const TQString configDir = configFile.left( configFile.tqfindRev( TQDir::separator(), -1 ) );
+ const TQString configDir = configFile.left( configFile.findRev( TQDir::separator(), -1 ) );
profileCfg.setGroup( "Kontact Profile" );
const TQString id = profileCfg.readEntry( "Identifier" );
Kontact::Profile profile( id );
@@ -199,7 +199,7 @@ void Kontact::ProfileManager::readConfig()
for ( ProfileMap::ConstIterator it = globalProfiles.begin(), end = globalProfiles.end(); it != end; ++it )
{
- if ( !profiles.tqcontains( it.key() ) )
+ if ( !profiles.contains( it.key() ) )
profiles[it.key()] = it.data();
}
@@ -252,7 +252,7 @@ void Kontact::ProfileManager::saveToProfile( const TQString& id )
bool Kontact::ProfileManager::addProfile( const Kontact::Profile& profile, bool syncConfig )
{
const TQString id = profile.id();
- if ( m_profiles.tqcontains( id ) )
+ if ( m_profiles.contains( id ) )
return false;
m_profiles[id] = profile;
emit profileAdded( id );
@@ -266,7 +266,7 @@ bool Kontact::ProfileManager::addProfile( const Kontact::Profile& profile, bool
void Kontact::ProfileManager::loadProfile( const TQString& id )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return;
emit profileLoaded( id );
}
@@ -278,7 +278,7 @@ void Kontact::ProfileManager::removeProfile( const Kontact::Profile& profile )
void Kontact::ProfileManager::removeProfile( const TQString& id )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return;
Kontact::Profile profile = profileById( id );
if ( profile.isLocal() ) {
@@ -292,7 +292,7 @@ void Kontact::ProfileManager::removeProfile( const TQString& id )
Kontact::ProfileManager::ExportError Kontact::ProfileManager::exportProfileToDirectory( const TQString& id, const TQString& path )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return SuccessfulExport;
if ( !TQDir( path ).exists() )
@@ -332,7 +332,7 @@ TQString Kontact::ProfileManager::generateNewId() const
while ( true )
{
const TQString newId = KApplication::randomString( 10 );
- if ( !m_profiles.tqcontains( newId ) )
+ if ( !m_profiles.contains( newId ) )
return newId;
}
}