diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/plugincontroller.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/plugincontroller.cpp')
-rw-r--r-- | src/plugincontroller.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugincontroller.cpp b/src/plugincontroller.cpp index 7b7ffac1..85d0b068 100644 --- a/src/plugincontroller.cpp +++ b/src/plugincontroller.cpp @@ -49,7 +49,7 @@ namespace template <class ComponentType> ComponentType *loadDefaultPart( const TQString &serviceType ) { - KTrader::OfferList offers = KTrader::self()->query(serviceType, TQString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION)); + KTrader::OfferList offers = KTrader::self()->query(serviceType, TQString("[X-KDevelop-Version] == %1").tqarg(KDEVELOP_PLUGIN_VERSION)); KTrader::OfferList::ConstIterator serviceIt = offers.begin(); for ( ; serviceIt != offers.end(); ++serviceIt ) { KService::Ptr service = *serviceIt; @@ -79,10 +79,10 @@ PluginController *PluginController::getInstance() PluginController::PluginController() : KDevPluginController() { -/* m_defaultProfile = TQString::fromLatin1( "FullIDE" ); +/* m_defaultProfile = TQString::tqfromLatin1( "FullIDE" ); m_defaultProfilePath = kapp->dirs()->localkdedir() + "/" + KStandardDirs::kde_default( "data" ) + - TQString::fromLatin1("/kdevelop/profiles/FullIDE");*/ + TQString::tqfromLatin1("/kdevelop/profiles/FullIDE");*/ KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); if( args->isSet("profile") ){ @@ -144,10 +144,10 @@ void PluginController::loadPlugins( KTrader::OfferList offers, const TQStringLis TQString name = (*it)->desktopEntryName(); // Check if it is already loaded or shouldn't be - if( m_parts[ name ] != 0 || ignorePlugins.contains( name ) ) + if( m_parts[ name ] != 0 || ignorePlugins.tqcontains( name ) ) continue; - emit loadingPlugin(i18n("Loading: %1").arg((*it)->genericName())); + emit loadingPlugin(i18n("Loading: %1").tqarg((*it)->genericName())); KDevPlugin *plugin = loadPlugin( *it ); if ( plugin ) @@ -218,7 +218,7 @@ KDevPlugin *PluginController::loadPlugin( const KService::Ptr &service ) 0, i18n("<b>Could not load plugin</b><br>" "Plugin %1 could not be loaded<br>" - "Library loader error: %2").arg(service->name()). + "Library loader error: %2").tqarg(service->name()). arg(KLibLoader::self()->lastErrorMessage()), i18n("Could not load plugin")); } |