summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_button.cpp')
-rw-r--r--src/modules/objects/class_button.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/modules/objects/class_button.cpp b/src/modules/objects/class_button.cpp
index 54d1525a..c3710cc1 100644
--- a/src/modules/objects/class_button.cpp
+++ b/src/modules/objects/class_button.cpp
@@ -24,7 +24,7 @@
#include "kvi_error.h"
-#include <qiconset.h>
+#include <tqiconset.h>
#include "kvi_iconmanager.h"
#include "class_button.h"
@@ -57,25 +57,25 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_button)
bool KviKvsObject_button::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- setObject(new QPushButton(parentScriptWidget(),name()),true);
- connect(widget(),SIGNAL(clicked()),this,SLOT(slotClicked()));
+ setObject(TQT_TQOBJECT(new TQPushButton(tqparentScriptWidget(),name())),true);
+ connect(widget(),TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClicked()));
return true;
}
bool KviKvsObject_button::functionText(KviKvsObjectFunctionCall *c)
{
- if(widget()) c->returnValue()->setString(((QPushButton *)widget())->text());
+ if(widget()) c->returnValue()->setString(((TQPushButton *)widget())->text());
return true;
}
bool KviKvsObject_button::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())
- ((QPushButton *)widget())->setText(szText);
+ ((TQPushButton *)widget())->setText(szText);
return true;
}
bool KviKvsObject_button::functionSetAutoDefault(KviKvsObjectFunctionCall *c)
@@ -85,7 +85,7 @@ bool KviKvsObject_button::functionSetAutoDefault(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QPushButton *)widget())->setAutoDefault(bEnabled);
+ ((TQPushButton *)widget())->setAutoDefault(bEnabled);
return true;
}
bool KviKvsObject_button::functionSetToggleButton(KviKvsObjectFunctionCall *c)
@@ -95,7 +95,7 @@ bool KviKvsObject_button::functionSetToggleButton(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QPushButton *)widget())->setToggleButton(bEnabled);
+ ((TQPushButton *)widget())->setToggleButton(bEnabled);
return true;
}
bool KviKvsObject_button::functionSetOn(KviKvsObjectFunctionCall *c)
@@ -105,7 +105,7 @@ bool KviKvsObject_button::functionSetOn(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QPushButton *)widget())->setOn(bEnabled);
+ ((TQPushButton *)widget())->setOn(bEnabled);
return true;
}
// FIX ME
@@ -116,48 +116,48 @@ bool KviKvsObject_button::functionSetIsMenuButton(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
/*if(widget())
- ((QPushButton *)widget())->setIsMenuButton(bEnabled);
+ ((TQPushButton *)widget())->setIsMenuButton(bEnabled);
*/
return true;
}
bool KviKvsObject_button::functionIsMenuButton(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setBoolean(((QPushButton *)widget())->isMenuButton());
+ if (widget()) c->returnValue()->setBoolean(((TQPushButton *)widget())->isMenuButton());
return true;
}
//
bool KviKvsObject_button::functionIsOn(KviKvsObjectFunctionCall *c)
{
- if (widget()) c->returnValue()->setBoolean(((QPushButton *)widget())->isOn());
+ if (widget()) c->returnValue()->setBoolean(((TQPushButton *)widget())->isOn());
return true;
}
bool KviKvsObject_button::functionToggle(KviKvsObjectFunctionCall *c)
{
- if(widget()) ((QPushButton *)widget())->toggle();
+ if(widget()) ((TQPushButton *)widget())->toggle();
return true;
}
// FIX ME
bool KviKvsObject_button::functionSetImage(KviKvsObjectFunctionCall *c)
{
- QString icon;
+ TQString icon;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("icon",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){
#ifdef COMPILE_USE_QT4
- ((QPushButton *)widget())->setIconSet(*pix);
+ ((TQPushButton *)widget())->setIconSet(*pix);
#else
- ((QPushButton *)widget())->setIconSet(QIconSet(*pix,QIconSet::Small));
+ ((TQPushButton *)widget())->setIconSet(TQIconSet(*pix,TQIconSet::Small));
#endif
}
else{
#ifdef COMPILE_USE_QT4
- ((QPushButton *)widget())->setIcon(QIconSet());
+ ((TQPushButton *)widget())->setIcon(TQIconSet());
#else
- ((QPushButton *)widget())->setIconSet(QIconSet());
+ ((TQPushButton *)widget())->setIconSet(TQIconSet());
#endif
}
return true;