summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/karambaapp.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /superkaramba/src/karambaapp.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/karambaapp.cpp')
-rw-r--r--superkaramba/src/karambaapp.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/superkaramba/src/karambaapp.cpp b/superkaramba/src/karambaapp.cpp
index 141b2e9..063ac1f 100644
--- a/superkaramba/src/karambaapp.cpp
+++ b/superkaramba/src/karambaapp.cpp
@@ -71,12 +71,12 @@ TQString KarambaApplication::getMainKaramba()
if (dcop.isMainKaramba())
return *it;
}
- return TQString::null;
+ return TQString();
}
bool KarambaApplication::themeExists(TQString pretty_name)
{
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list ); // iterate over the widgets
TQWidget * w;
while ( (w=it.current()) != 0 ) // for each widget...
@@ -296,7 +296,7 @@ void KarambaApplication::addKaramba(karamba* k, bool reloading)
karambaApp->dcopClient()->appId(), k->theme().file());
k->setInstance(instance);
}
- karambaList->append(k);
+ karambaList->append(TQT_TQOBJECT(k));
}
void KarambaApplication::deleteKaramba(karamba* k, bool reloading)
@@ -304,12 +304,12 @@ void KarambaApplication::deleteKaramba(karamba* k, bool reloading)
if(!reloading && karambaApp->dcopStub())
karambaApp->dcopStub()->themeClosed(
karambaApp->dcopClient()->appId(), k->theme().file(), k->instance());
- karambaList->removeRef(k);
+ karambaList->removeRef(TQT_TQOBJECT(k));
}
bool KarambaApplication::hasKaramba(karamba* k)
{
- return karambaList->containsRef(k) > 0;
+ return karambaList->tqcontainsRef(TQT_TQOBJECT(k)) > 0;
}
// XXX: I guess this should be made with mutex/semaphores
@@ -380,8 +380,8 @@ void KarambaApplication::quitSuperKaramba()
{
if(themeListWindow)
themeListWindow->saveUserAddedThemes();
- qApp->closeAllWindows();
- qApp->quit();
+ tqApp->closeAllWindows();
+ tqApp->quit();
}
void KarambaApplication::globalQuitSuperKaramba()