From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/kocore.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'korganizer/kocore.cpp') diff --git a/korganizer/kocore.cpp b/korganizer/kocore.cpp index 6aca769b5..b9d404e70 100644 --- a/korganizer/kocore.cpp +++ b/korganizer/kocore.cpp @@ -39,7 +39,7 @@ #include #include -#include +#include KOCore *KOCore::mSelf = 0; @@ -62,12 +62,12 @@ KOCore::~KOCore() mSelf = 0; } -KTrader::OfferList KOCore::availablePlugins( const QString &type, int version ) +KTrader::OfferList KOCore::availablePlugins( const TQString &type, int version ) { - QString constraint; + TQString constraint; if ( version >= 0 ) { - constraint = QString("[X-KDE-PluginInterfaceVersion] == %1") - .arg( QString::number( version ) ); + constraint = TQString("[X-KDE-PluginInterfaceVersion] == %1") + .arg( TQString::number( version ) ); } return KTrader::self()->query( type, constraint ); @@ -124,7 +124,7 @@ KOrg::Plugin *KOCore::loadPlugin( KService::Ptr service ) return pluginFactory->create(); } -KOrg::Plugin *KOCore::loadPlugin( const QString &name ) +KOrg::Plugin *KOCore::loadPlugin( const TQString &name ) { KTrader::OfferList list = availablePlugins(); KTrader::OfferList::ConstIterator it; @@ -158,7 +158,7 @@ KOrg::CalendarDecoration *KOCore::loadCalendarDecoration(KService::Ptr service) return pluginFactory->create(); } -KOrg::CalendarDecoration *KOCore::loadCalendarDecoration( const QString &name ) +KOrg::CalendarDecoration *KOCore::loadCalendarDecoration( const TQString &name ) { KTrader::OfferList list = availableCalendarDecorations(); KTrader::OfferList::ConstIterator it; @@ -224,27 +224,27 @@ KOrg::PrintPlugin *KOCore::loadPrintPlugin( KService::Ptr service ) return pluginFactory->create(); } -void KOCore::addXMLGUIClient( QWidget *wdg, KXMLGUIClient *guiclient ) +void KOCore::addXMLGUIClient( TQWidget *wdg, KXMLGUIClient *guiclient ) { mXMLGUIClients.insert( wdg, guiclient ); } -void KOCore::removeXMLGUIClient( QWidget *wdg ) +void KOCore::removeXMLGUIClient( TQWidget *wdg ) { mXMLGUIClients.remove( wdg ); } -KXMLGUIClient* KOCore::xmlguiClient( QWidget *wdg ) const +KXMLGUIClient* KOCore::xmlguiClient( TQWidget *wdg ) const { - QWidget *topLevel = wdg->topLevelWidget(); - QMap::ConstIterator it = mXMLGUIClients.find( topLevel ); + TQWidget *topLevel = wdg->topLevelWidget(); + TQMap::ConstIterator it = mXMLGUIClients.find( topLevel ); if ( it != mXMLGUIClients.end() ) return it.data(); return 0; } -KOrg::Part *KOCore::loadPart( const QString &name, KOrg::MainWindow *parent ) +KOrg::Part *KOCore::loadPart( const TQString &name, KOrg::MainWindow *parent ) { KTrader::OfferList list = availableParts(); KTrader::OfferList::ConstIterator it; @@ -256,7 +256,7 @@ KOrg::Part *KOCore::loadPart( const QString &name, KOrg::MainWindow *parent ) return 0; } -KOrg::PrintPlugin *KOCore::loadPrintPlugin( const QString &name ) +KOrg::PrintPlugin *KOCore::loadPrintPlugin( const TQString &name ) { KTrader::OfferList list = availablePrintPlugins(); KTrader::OfferList::ConstIterator it; @@ -271,14 +271,14 @@ KOrg::PrintPlugin *KOCore::loadPrintPlugin( const QString &name ) KOrg::CalendarDecoration::List KOCore::calendarDecorations() { if ( !mCalendarDecorationsLoaded ) { - QStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; + TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; mCalendarDecorations.clear(); KTrader::OfferList plugins = availableCalendarDecorations(); KTrader::OfferList::ConstIterator it; for( it = plugins.begin(); it != plugins.end(); ++it ) { if ( (*it)->hasServiceType("Calendar/Decoration") ) { - QString name = (*it)->desktopEntryName(); + TQString name = (*it)->desktopEntryName(); if ( selectedPlugins.find( name ) != selectedPlugins.end() ) { KOrg::CalendarDecoration *d = loadCalendarDecoration(*it); mCalendarDecorations.append( d ); @@ -295,7 +295,7 @@ KOrg::Part::List KOCore::loadParts( KOrg::MainWindow *parent ) { KOrg::Part::List parts; - QStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; + TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; KTrader::OfferList plugins = availableParts(); KTrader::OfferList::ConstIterator it; @@ -321,7 +321,7 @@ KOrg::PrintPlugin::List KOCore::loadPrintPlugins() { KOrg::PrintPlugin::List loadedPlugins; - QStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; + TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins; KTrader::OfferList plugins = availablePrintPlugins(); KTrader::OfferList::ConstIterator it; -- cgit v1.2.1