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/config_python.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/config_python.cpp')
-rw-r--r-- | superkaramba/src/config_python.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/superkaramba/src/config_python.cpp b/superkaramba/src/config_python.cpp index 28d5364..1a094eb 100644 --- a/superkaramba/src/config_python.cpp +++ b/superkaramba/src/config_python.cpp @@ -27,14 +27,14 @@ #endif #include <Python.h> -#include <qobject.h> +#include <tqobject.h> #include "karamba.h" #include "meter.h" #include "meter_python.h" #include "config_python.h" // API-Function addMenuConfigOption -long addMenuConfigOption(long widget, QString key, QString name) +long addMenuConfigOption(long widget, TQString key, TQString name) { karamba* currTheme = (karamba*)widget; @@ -54,14 +54,14 @@ PyObject* py_add_menu_config_option(PyObject *, PyObject *args) if (!checkKaramba(widget)) return NULL; - QString k, n; + TQString k, n; k.setAscii(key); - n = PyString2QString(name); + n = PyString2TQString(name); return Py_BuildValue((char*)"l", addMenuConfigOption(widget, k, n)); } -long setMenuConfigOption(long widget, QString key, bool value) +long setMenuConfigOption(long widget, TQString key, bool value) { karamba* currTheme = (karamba*)widget; @@ -79,13 +79,13 @@ PyObject* py_set_menu_config_option(PyObject *, PyObject *args) if (!checkKaramba(widget)) return NULL; - QString k; + TQString k; k.setAscii(key); return Py_BuildValue((char*)"l", setMenuConfigOption(widget, k, (bool)value)); } -long readMenuConfigOption(long widget, QString key) +long readMenuConfigOption(long widget, TQString key) { karamba* currTheme = (karamba*)widget; @@ -102,14 +102,14 @@ PyObject* py_read_menu_config_option(PyObject *, PyObject *args) if (!checkKaramba(widget)) return NULL; - QString k; + TQString k; k.setAscii(key); return Py_BuildValue((char*)"l", readMenuConfigOption(widget, k)); } // API-Function writeConfigEntry -long writeConfigEntry(long widget, QString key, QString value) +long writeConfigEntry(long widget, TQString key, TQString value) { karamba* currTheme = (karamba*)widget; @@ -129,7 +129,7 @@ PyObject* py_write_config_entry(PyObject *, PyObject *args) return NULL; if (!checkKaramba(widget)) return NULL; - QString k, v; + TQString k, v; k.setAscii(key); v.setAscii(value); @@ -137,7 +137,7 @@ PyObject* py_write_config_entry(PyObject *, PyObject *args) } // API-Function readConfigEntry -QVariant readConfigEntry(long widget, QString key) +TQVariant readConfigEntry(long widget, TQString key) { karamba* currTheme = (karamba*)widget; @@ -153,11 +153,11 @@ PyObject* py_read_config_entry(PyObject *, PyObject *args) return NULL; if (!checkKaramba(widget)) return NULL; - QString k; + TQString k; k.setAscii(key); - QVariant entry = readConfigEntry(widget, k); - QString type; + TQVariant entry = readConfigEntry(widget, k); + TQString type; type.setAscii(entry.typeName()); if (type == "Bool") @@ -172,7 +172,7 @@ PyObject* py_read_config_entry(PyObject *, PyObject *args) return Py_BuildValue((char*)"l", i); } - if (type == "QString") + if (type == "TQString") { return Py_BuildValue((char*)"s", entry.toString().ascii()); } |