summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/meter_python.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/meter_python.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/meter_python.cpp')
-rw-r--r--superkaramba/src/meter_python.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/superkaramba/src/meter_python.cpp b/superkaramba/src/meter_python.cpp
index b8e1153..12c3a7e 100644
--- a/superkaramba/src/meter_python.cpp
+++ b/superkaramba/src/meter_python.cpp
@@ -78,12 +78,12 @@ bool checkKarambaAndMeter(long widget, long meter, const char* type)
// This just throws awya extra bytes.
// I guess there is a better way to do this...
-TQString fromUcs4(Q_UINT32* ucs4)
+TQString fromUcs4(TQ_UINT32* ucs4)
{
TQString result = "";
while(*ucs4 != 0)
{
- result += TQChar((Q_UINT16)*ucs4);
+ result += TQChar((TQ_UINT16)*ucs4);
++ucs4;
}
return result;
@@ -102,9 +102,9 @@ TQString PyString2TQString(PyObject* text)
{
Py_UNICODE* t = PyUnicode_AsUnicode(text);
if(sizeof(Py_UNICODE) == 4)
- qtext = fromUcs4((Q_UINT32*)t);
+ qtext = fromUcs4((TQ_UINT32*)t);
else
- qtext = TQString::fromUcs2((Q_UINT16*)t);
+ qtext = TQString::fromUcs2((TQ_UINT16*)t);
}
else
{
@@ -114,7 +114,7 @@ TQString PyString2TQString(PyObject* text)
}
// Converts a TQString to a Python String with Unicode support
-PyObject* QString2PyString(TQString string)
+PyObject* TQString2PyString(TQString string)
{
PyObject *pyString;
@@ -283,7 +283,7 @@ PyObject* py_getStringValue(PyObject *, PyObject *args, TQString type)
if (!checkKarambaAndMeter(widget, meter, type.ascii()))
return NULL;
return Py_BuildValue((char*)"O",
- QString2PyString(((Meter*)meter)->getStringValue()));
+ TQString2PyString(((Meter*)meter)->getStringValue()));
}
PyObject* py_setStringValue(PyObject *, PyObject *args, TQString type)