diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/karambainterface.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/karambainterface.cpp')
-rw-r--r-- | superkaramba/src/karambainterface.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/superkaramba/src/karambainterface.cpp b/superkaramba/src/karambainterface.cpp index 7a201d8..5d33f68 100644 --- a/superkaramba/src/karambainterface.cpp +++ b/superkaramba/src/karambainterface.cpp @@ -11,7 +11,7 @@ #include "karamba.h" #include "karambainterface.h" #include <kdebug.h> -#include "qwidgetlist.h" +#include "tqwidgetlist.h" #include "themesdlg.h" KarambaIface::KarambaIface(): DCOPObject("KarambaIface") @@ -22,17 +22,17 @@ KarambaIface::~KarambaIface() { } -karamba* KarambaIface::getKaramba(QString name) +karamba* KarambaIface::getKaramba(TQString name) { - QWidgetList *list = QApplication::allWidgets(); - QWidgetListIt it(*list); // iterate over the widgets - QWidget* w; + TQWidgetList *list = TQApplication::allWidgets(); + TQWidgetListIt it(*list); // iterate over the widgets + TQWidget* w; karamba* result = 0; while ( (w=it.current()) != 0 ) // for each widget... { ++it; - if (QString(w->name()).startsWith("karamba")) + if (TQString(w->name()).startsWith("karamba")) { karamba* k = (karamba*) w; //if(k->prettyName == name) @@ -49,15 +49,15 @@ karamba* KarambaIface::getKaramba(QString name) ThemesDlg* KarambaIface::getThemeWnd() { - QWidgetList *list = QApplication::allWidgets(); - QWidgetListIt it( *list ); // iterate over the widgets - QWidget* w; + TQWidgetList *list = TQApplication::allWidgets(); + TQWidgetListIt it( *list ); // iterate over the widgets + TQWidget* w; ThemesDlg* result = 0; while ( (w=it.current()) != 0 ) // for each widget... { ++it; - if (QString(w->name()) == "ThemesLayout") + if (TQString(w->name()) == "ThemesLayout") { result = (ThemesDlg*) w; break; @@ -67,25 +67,25 @@ ThemesDlg* KarambaIface::getThemeWnd() return result; } -void KarambaIface::openTheme(QString filename) +void KarambaIface::openTheme(TQString filename) { - QFileInfo file(filename); + TQFileInfo file(filename); if(file.exists()) { - (new karamba(filename, QString()))->show(); + (new karamba(filename, TQString()))->show(); } } -void KarambaIface::openNamedTheme(QString filename, QString name, bool is_sub_theme) +void KarambaIface::openNamedTheme(TQString filename, TQString name, bool is_sub_theme) { - QFileInfo file(filename); + TQFileInfo file(filename); if(file.exists()) { (new karamba(filename, name, false, -1, is_sub_theme))->show(); } } -void KarambaIface::closeTheme(QString name) +void KarambaIface::closeTheme(TQString name) { kdDebug() << "KarambaIface::closeTheme: " << name << endl; karamba* k; @@ -97,7 +97,7 @@ void KarambaIface::closeTheme(QString name) } } -int KarambaIface::themeAdded(QString appId, QString file) +int KarambaIface::themeAdded(TQString appId, TQString file) { ThemesDlg* tw = getThemeWnd(); if(tw) @@ -105,7 +105,7 @@ int KarambaIface::themeAdded(QString appId, QString file) return -1; } -void KarambaIface::themeNotify(QString name, QString text) +void KarambaIface::themeNotify(TQString name, TQString text) { karamba* k = getKaramba(name); if(k) @@ -114,7 +114,7 @@ void KarambaIface::themeNotify(QString name, QString text) } } -void KarambaIface::setIncomingData(QString name, QString text) +void KarambaIface::setIncomingData(TQString name, TQString text) { karamba* k = getKaramba(name); if(k) @@ -123,7 +123,7 @@ void KarambaIface::setIncomingData(QString name, QString text) } } -void KarambaIface::themeClosed(QString appId, QString file, int instance) +void KarambaIface::themeClosed(TQString appId, TQString file, int instance) { ThemesDlg* tw = getThemeWnd(); if(tw) |