summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_spinbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/objects/class_spinbox.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/objects/class_spinbox.cpp')
-rw-r--r--src/modules/objects/class_spinbox.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/modules/objects/class_spinbox.cpp b/src/modules/objects/class_spinbox.cpp
index f87a3a51..62f7df54 100644
--- a/src/modules/objects/class_spinbox.cpp
+++ b/src/modules/objects/class_spinbox.cpp
@@ -21,7 +21,7 @@
// Inc. ,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
-#include <qspinbox.h>
+#include <tqspinbox.h>
#include "class_spinbox.h"
#include "kvi_error.h"
#include "kvi_debug.h"
@@ -132,8 +132,8 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_spinbox)
bool KviKvsObject_spinbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- setObject(new QSpinBox(parentScriptWidget(), name()), true);
- connect(widget(),SIGNAL(valueChanged(int)),this,SLOT(valueChanged(int)));
+ setObject(TQT_TQOBJECT(new TQSpinBox(tqparentScriptWidget(), name())), true);
+ connect(widget(),TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(valueChanged(int)));
return true;
}
@@ -145,7 +145,7 @@ bool KviKvsObject_spinbox::functionsetValue(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("value",KVS_PT_INT,0,iValue)
KVSO_PARAMETERS_END(c)
- if (widget()) ((QSpinBox *)widget())->setValue(iValue);
+ if (widget()) ((TQSpinBox *)widget())->setValue(iValue);
return true;
}
bool KviKvsObject_spinbox::functionsetMinValue(KviKvsObjectFunctionCall *c)
@@ -154,7 +154,7 @@ bool KviKvsObject_spinbox::functionsetMinValue(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("min_value",KVS_PT_INT,0,iMinvalue)
KVSO_PARAMETERS_END(c)
- if (widget()) ((QSpinBox *)widget())->setMinValue(iMinvalue);
+ if (widget()) ((TQSpinBox *)widget())->setMinValue(iMinvalue);
return true;
}
bool KviKvsObject_spinbox::functionsetMaxValue(KviKvsObjectFunctionCall *c)
@@ -163,7 +163,7 @@ bool KviKvsObject_spinbox::functionsetMaxValue(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("max_value",KVS_PT_INT,0,iMaxvalue)
KVSO_PARAMETERS_END(c)
- if (widget()) ((QSpinBox *)widget())->setMaxValue(iMaxvalue);
+ if (widget()) ((TQSpinBox *)widget())->setMaxValue(iMaxvalue);
return true;
}
@@ -173,25 +173,25 @@ bool KviKvsObject_spinbox::functionsetLineStep(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("line_step",KVS_PT_INT,0,iLinestep)
KVSO_PARAMETERS_END(c)
- if (widget()) ((QSpinBox *)widget())->setLineStep(iLinestep);
+ if (widget()) ((TQSpinBox *)widget())->setLineStep(iLinestep);
return true;
}
bool KviKvsObject_spinbox::functionvalue(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setInteger(((QSpinBox *)widget())->value());
+ if (widget()) c->returnValue()->setInteger(((TQSpinBox *)widget())->value());
return true;
}
bool KviKvsObject_spinbox::functionminValue(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setInteger(((QSpinBox *)widget())->minValue());
+ if (widget()) c->returnValue()->setInteger(((TQSpinBox *)widget())->minValue());
return true;
}
bool KviKvsObject_spinbox::functionmaxValue(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setInteger(((QSpinBox *)widget())->maxValue());
+ if (widget()) c->returnValue()->setInteger(((TQSpinBox *)widget())->maxValue());
return true;
}
bool KviKvsObject_spinbox::functionlineStep(KviKvsObjectFunctionCall *c)
@@ -199,9 +199,9 @@ bool KviKvsObject_spinbox::functionlineStep(KviKvsObjectFunctionCall *c)
if (widget())
{
#ifdef COMPILE_USE_QT4
- c->returnValue()->setInteger(((QSpinBox *)widget())->singleStep());
+ c->returnValue()->setInteger(((TQSpinBox *)widget())->singleStep());
#else
- c->returnValue()->setInteger(((QSpinBox *)widget())->lineStep());
+ c->returnValue()->setInteger(((TQSpinBox *)widget())->lineStep());
#endif
}
@@ -211,7 +211,7 @@ bool KviKvsObject_spinbox::functionlineStep(KviKvsObjectFunctionCall *c)
bool KviKvsObject_spinbox::functionspecialValueText(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setString(((QSpinBox *)widget())->specialValueText());
+ if (widget()) c->returnValue()->setString(((TQSpinBox *)widget())->specialValueText());
return true;
}
@@ -219,34 +219,34 @@ bool KviKvsObject_spinbox::functionspecialValueText(KviKvsObjectFunctionCall *c)
bool KviKvsObject_spinbox::functionsetSpecialValueText(KviKvsObjectFunctionCall *c)
{
- QString szText;
+ TQString szText;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szText)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QSpinBox *)widget())->setSpecialValueText(szText);
+ ((TQSpinBox *)widget())->setSpecialValueText(szText);
return true;
}
bool KviKvsObject_spinbox::functionsetPrefix(KviKvsObjectFunctionCall *c)
{
- QString szPrefix;
+ TQString szPrefix;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szPrefix)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QSpinBox *)widget())->setPrefix(szPrefix);
+ ((TQSpinBox *)widget())->setPrefix(szPrefix);
return true;
}
bool KviKvsObject_spinbox::functionsetSuffix(KviKvsObjectFunctionCall *c)
{
- QString szSuffix;
+ TQString szSuffix;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szSuffix)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QSpinBox *)widget())->setSuffix(szSuffix);
+ ((TQSpinBox *)widget())->setSuffix(szSuffix);
return true;
}