summaryrefslogtreecommitdiffstats
path: root/libtdepim/komposer/core/pluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/komposer/core/pluginmanager.cpp')
-rw-r--r--libtdepim/komposer/core/pluginmanager.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libtdepim/komposer/core/pluginmanager.cpp b/libtdepim/komposer/core/pluginmanager.cpp
index 2a55d7349..dcfea6f4b 100644
--- a/libtdepim/komposer/core/pluginmanager.cpp
+++ b/libtdepim/komposer/core/pluginmanager.cpp
@@ -82,8 +82,8 @@ PluginManager::PluginManager( TQObject *parent )
this, TQT_SLOT( loadAllPlugins() ) );
d->plugins = KPluginInfo::fromServices(
- KTrader::self()->query( TQString::fromLatin1( "Komposer/Plugin" ),
- TQString::fromLatin1( "[X-Komposer-Version] == 1" ) ) );
+ KTrader::self()->query( TQString::tqfromLatin1( "Komposer/Plugin" ),
+ TQString::tqfromLatin1( "[X-Komposer-Version] == 1" ) ) );
}
PluginManager::~PluginManager()
@@ -205,7 +205,7 @@ PluginManager::slotShutdownTimeout()
kdWarning() << k_funcinfo << "Some plugins didn't shutdown in time!" << endl
<< "Remaining plugins: "
- << remaining.join( TQString::fromLatin1( ", " ) ) << endl
+ << remaining.join( TQString::tqfromLatin1( ", " ) ) << endl
<< "Forcing Komposer shutdown now." << endl;
#endif
@@ -229,18 +229,18 @@ PluginManager::loadAllPlugins()
d->config = KSharedConfig::openConfig( "komposerrc" );
TQMap<TQString, TQString> entries = d->config->entryMap(
- TQString::fromLatin1( "Plugins" ) );
+ TQString::tqfromLatin1( "Plugins" ) );
TQMap<TQString, TQString>::Iterator it;
for ( it = entries.begin(); it != entries.end(); ++it )
{
TQString key = it.key();
- if ( key.endsWith( TQString::fromLatin1( "Enabled" ) ) )
+ if ( key.endsWith( TQString::tqfromLatin1( "Enabled" ) ) )
{
key.setLength( key.length() - 7 );
//kdDebug() << k_funcinfo << "Set " << key << " to " << it.data() << endl;
- if ( it.data() == TQString::fromLatin1( "true" ) )
+ if ( it.data() == TQString::tqfromLatin1( "true" ) )
{
if ( !plugin( key ) )
d->pluginsToLoad.push( key );
@@ -310,8 +310,8 @@ PluginManager::loadPluginInternal( const TQString &pluginId )
int error = 0;
Plugin *plugin = KParts::ComponentFactory::createInstanceFromQuery<Komposer::Plugin>(
- TQString::fromLatin1( "Komposer/Plugin" ),
- TQString::fromLatin1( "[X-KDE-PluginInfo-Name]=='%1'" ).arg( pluginId ),
+ TQString::tqfromLatin1( "Komposer/Plugin" ),
+ TQString::tqfromLatin1( "[X-KDE-PluginInfo-Name]=='%1'" ).tqarg( pluginId ),
this, 0, TQStringList(), &error );
if ( plugin ) {
@@ -424,7 +424,7 @@ PluginManager::pluginName( const Plugin *plugin ) const
return it.key()->name();
}
- return TQString::fromLatin1( "Unknown" );
+ return TQString::tqfromLatin1( "Unknown" );
}
TQString
@@ -437,7 +437,7 @@ PluginManager::pluginId( const Plugin *plugin ) const
return it.key()->pluginName();
}
- return TQString::fromLatin1( "unknown" );
+ return TQString::tqfromLatin1( "unknown" );
}
TQString
@@ -450,7 +450,7 @@ PluginManager::pluginIcon( const Plugin *plugin ) const
return it.key()->icon();
}
- return TQString::fromLatin1( "Unknown" );
+ return TQString::tqfromLatin1( "Unknown" );
}
KPluginInfo*
@@ -478,7 +478,7 @@ PluginManager::setPluginEnabled( const TQString &pluginId, bool enabled /* = tru
if ( !infoForPluginId( pluginId ) )
return false;
- d->config->writeEntry( pluginId + TQString::fromLatin1( "Enabled" ), enabled );
+ d->config->writeEntry( pluginId + TQString::tqfromLatin1( "Enabled" ), enabled );
d->config->sync();
return true;