summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_radiobutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_radiobutton.cpp')
-rw-r--r--src/modules/objects/class_radiobutton.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/objects/class_radiobutton.cpp b/src/modules/objects/class_radiobutton.cpp
index 08211e12..75a20f52 100644
--- a/src/modules/objects/class_radiobutton.cpp
+++ b/src/modules/objects/class_radiobutton.cpp
@@ -82,23 +82,23 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_radiobutton)
bool KviKvsObject_radiobutton::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- setObject(new QRadioButton(parentScriptWidget(),name()),true);
- connect(widget(),SIGNAL(toggled(bool)),this,SLOT(toggled(bool)));
+ setObject(TQT_TQOBJECT(new TQRadioButton(tqparentScriptWidget(),name())),true);
+ connect(widget(),TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(toggled(bool)));
return true;
}
bool KviKvsObject_radiobutton::functionSetText(KviKvsObjectFunctionCall *c)
{
- QString szText;
+ TQString szText;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szText)
KVSO_PARAMETERS_END(c)
if (widget())
- ((QRadioButton *)widget())->setText(szText);
+ ((TQRadioButton *)widget())->setText(szText);
return true;
}
bool KviKvsObject_radiobutton::functionIsChecked(KviKvsObjectFunctionCall *c)
{
- if(widget()) c->returnValue()->setBoolean(((QRadioButton *)widget())->isChecked());
+ if(widget()) c->returnValue()->setBoolean(((TQRadioButton *)widget())->isChecked());
return true;
}
@@ -108,17 +108,17 @@ bool KviKvsObject_radiobutton::functionSetChecked(KviKvsObjectFunctionCall *c)
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("bChecked",KVS_PT_BOOL,0,bChecked)
KVSO_PARAMETERS_END(c)
- if(widget()) ((QRadioButton *)widget())->setChecked(bChecked);
+ if(widget()) ((TQRadioButton *)widget())->setChecked(bChecked);
return true;
}
bool KviKvsObject_radiobutton::functionSetImage(KviKvsObjectFunctionCall *c)
{
- QString icon;
+ TQString icon;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("icon_id",KVS_PT_STRING,0,icon)
KVSO_PARAMETERS_END(c)
if (!widget()) return true;
- QPixmap * pix = g_pIconManager->getImage(icon);
+ TQPixmap * pix = g_pIconManager->getImage(icon);
if(pix)widget()->setIcon(*pix);
return true;
}