summaryrefslogtreecommitdiffstats
path: root/korganizer/kocore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kocore.cpp')
-rw-r--r--korganizer/kocore.cpp36
1 files changed, 18 insertions, 18 deletions
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 <kstandarddirs.h>
#include <klocale.h>
-#include <qwidget.h>
+#include <tqwidget.h>
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<QWidget*, KXMLGUIClient*>::ConstIterator it = mXMLGUIClients.find( topLevel );
+ TQWidget *topLevel = wdg->topLevelWidget();
+ TQMap<TQWidget*, KXMLGUIClient*>::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;