summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_toolbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_toolbutton.cpp')
-rw-r--r--src/modules/objects/class_toolbutton.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/modules/objects/class_toolbutton.cpp b/src/modules/objects/class_toolbutton.cpp
index 032b0c60..c8efb269 100644
--- a/src/modules/objects/class_toolbutton.cpp
+++ b/src/modules/objects/class_toolbutton.cpp
@@ -129,28 +129,28 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_toolbutton)
bool KviKvsObject_toolbutton::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- setObject(new QToolButton(parentScriptWidget(), name()), true);
- connect(widget(),SIGNAL(clicked()),this,SLOT(slotClicked()));
+ setObject(TQT_TQOBJECT(new TQToolButton(tqparentScriptWidget(), name())), true);
+ connect(widget(),TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClicked()));
return true;
}
bool KviKvsObject_toolbutton::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){
#ifdef COMPILE_USE_QT4
- ((QToolButton *)widget())->setIconSet(QIconSet(*pix));
+ ((TQToolButton *)widget())->setIconSet(TQIconSet(*pix));
#else
- ((QToolButton *)widget())->setIconSet(QIconSet(*pix,QIconSet::Small));
+ ((TQToolButton *)widget())->setIconSet(TQIconSet(*pix,TQIconSet::Small));
#endif
}
else
- ((QToolButton *)widget())->setIconSet(QIconSet());
+ ((TQToolButton *)widget())->setIconSet(TQIconSet());
return true;
}
bool KviKvsObject_toolbutton::functionsetUsesBigPixmap(KviKvsObjectFunctionCall *c)
@@ -160,13 +160,13 @@ bool KviKvsObject_toolbutton::functionsetUsesBigPixmap(KviKvsObjectFunctionCall
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QToolButton *)widget())->setUsesBigPixmap(bEnabled);
+ ((TQToolButton *)widget())->setUsesBigPixmap(bEnabled);
return true;
}
bool KviKvsObject_toolbutton::functionusesBigPixmap(KviKvsObjectFunctionCall *c)
{
if (widget())
- c->returnValue()->setBoolean(((QToolButton *)widget())->usesBigPixmap());
+ c->returnValue()->setBoolean(((TQToolButton *)widget())->usesBigPixmap());
return true;
}
bool KviKvsObject_toolbutton::functionsetUsesTextLabel(KviKvsObjectFunctionCall *c)
@@ -176,13 +176,13 @@ bool KviKvsObject_toolbutton::functionsetUsesTextLabel(KviKvsObjectFunctionCall
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QToolButton *)widget())->setUsesTextLabel(bEnabled);
+ ((TQToolButton *)widget())->setUsesTextLabel(bEnabled);
return true;
}
bool KviKvsObject_toolbutton::functionusesTextLabel(KviKvsObjectFunctionCall *c)
{
if (widget())
- c->returnValue()->setBoolean(((QToolButton *)widget())->usesTextLabel());
+ c->returnValue()->setBoolean(((TQToolButton *)widget())->usesTextLabel());
return true;
}
bool KviKvsObject_toolbutton::function_setAutoRaise(KviKvsObjectFunctionCall *c)
@@ -192,13 +192,13 @@ bool KviKvsObject_toolbutton::function_setAutoRaise(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QToolButton *)widget())->setAutoRaise(bEnabled);
+ ((TQToolButton *)widget())->setAutoRaise(bEnabled);
return true;
}
bool KviKvsObject_toolbutton::function_autoRaise(KviKvsObjectFunctionCall *c)
{
if(widget())
- c->returnValue()->setBoolean(((QToolButton *)widget())->autoRaise());
+ c->returnValue()->setBoolean(((TQToolButton *)widget())->autoRaise());
return true;
}
bool KviKvsObject_toolbutton::functionsetOn(KviKvsObjectFunctionCall *c)
@@ -208,7 +208,7 @@ bool KviKvsObject_toolbutton::functionsetOn(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QToolButton *)widget())->setOn(bEnabled);
+ ((TQToolButton *)widget())->setOn(bEnabled);
return true;
}
@@ -219,19 +219,19 @@ bool KviKvsObject_toolbutton::functionsetToggleButton(KviKvsObjectFunctionCall *
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QToolButton *)widget())->setToggleButton(bEnabled);
+ ((TQToolButton *)widget())->setToggleButton(bEnabled);
return true;
}
bool KviKvsObject_toolbutton::functiontoggle(KviKvsObjectFunctionCall *c)
{
if (widget())
- ((QToolButton *)widget())->toggle();
+ ((TQToolButton *)widget())->toggle();
return true;
}
bool KviKvsObject_toolbutton::functionsetTextLabel(KviKvsObjectFunctionCall *c)
{
- QString szLabel,szTip;
+ TQString szLabel,szTip;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("label",KVS_PT_STRING,0,szLabel)
KVSO_PARAMETER("tooltip",KVS_PT_STRING,KVS_PF_OPTIONAL,szTip)
@@ -239,18 +239,18 @@ bool KviKvsObject_toolbutton::functionsetTextLabel(KviKvsObjectFunctionCall *c)
if(!widget()) return true;
#ifdef COMPILE_USE_QT4
- ((QToolButton *)widget())->setText(szLabel);
- if (!szTip.isEmpty()) ((QToolButton *)widget())->setToolTip(szTip);
+ ((TQToolButton *)widget())->setText(szLabel);
+ if (!szTip.isEmpty()) ((TQToolButton *)widget())->setToolTip(szTip);
#else
- if (szTip.isEmpty()) ((QToolButton *)widget())->setTextLabel(szLabel);
- else ((QToolButton *)widget())->setTextLabel(szLabel,szTip);
+ if (szTip.isEmpty()) ((TQToolButton *)widget())->setTextLabel(szLabel);
+ else ((TQToolButton *)widget())->setTextLabel(szLabel,szTip);
#endif
return true;
}
bool KviKvsObject_toolbutton::functiontextLabel(KviKvsObjectFunctionCall *c)
{
if (widget())
- c->returnValue()->setString(((QToolButton *)widget())->textLabel());
+ c->returnValue()->setString(((TQToolButton *)widget())->textLabel());
return true;
}
bool KviKvsObject_toolbutton::functionsetPopup(KviKvsObjectFunctionCall *c)
@@ -277,13 +277,13 @@ bool KviKvsObject_toolbutton::functionsetPopup(KviKvsObjectFunctionCall *c)
return TRUE;
}
if(widget())
- ((QToolButton *)widget())->setPopup(((KviTalPopupMenu *)(ob->object())));
+ ((TQToolButton *)widget())->setPopup(((KviTalPopupMenu *)(ob->object())));
return true;
}
bool KviKvsObject_toolbutton::functionopenPopup(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QToolButton *)widget())->openPopup();
+ ((TQToolButton *)widget())->openPopup();
return true;
}
bool KviKvsObject_toolbutton::functionsetPopupDelay(KviKvsObjectFunctionCall *c)
@@ -293,34 +293,34 @@ bool KviKvsObject_toolbutton::functionsetPopupDelay(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("delay",KVS_PT_UNSIGNEDINTEGER,0,uDelay)
KVSO_PARAMETERS_END(c)
if (widget())
- ((QToolButton *)widget())->setPopupDelay(uDelay);
+ ((TQToolButton *)widget())->setPopupDelay(uDelay);
return true;
}
bool KviKvsObject_toolbutton::functionpopupDelay(KviKvsObjectFunctionCall *c)
{
if (widget())
- c->returnValue()->setInteger(((QToolButton *)widget())->popupDelay());
+ c->returnValue()->setInteger(((TQToolButton *)widget())->popupDelay());
return true;
}
bool KviKvsObject_toolbutton::functionsetTextPosition(KviKvsObjectFunctionCall *c)
{
- QString szPos;
+ TQString szPos;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("position",KVS_PT_STRING,0,szPos)
KVSO_PARAMETERS_END(c)
if(!widget())return true;
- if(KviQString::equalCI(szPos,"BesideIcon"))
- ((QToolButton *)widget())->setTextPosition(QToolButton::BesideIcon);
- else if(KviQString::equalCI(szPos,"BelowIcon"))
- ((QToolButton *)widget())->setTextPosition(QToolButton::BelowIcon);
+ if(KviTQString::equalCI(szPos,"BesideIcon"))
+ ((TQToolButton *)widget())->setTextPosition(TQToolButton::BesideIcon);
+ else if(KviTQString::equalCI(szPos,"BelowIcon"))
+ ((TQToolButton *)widget())->setTextPosition(TQToolButton::BelowIcon);
else c->warning(__tr2qs("Unknown text position '%Q'"),&szPos);
return true;
}
bool KviKvsObject_toolbutton::functiontextPosition(KviKvsObjectFunctionCall *c)
{
if(!widget()) return true;
- QString szPos="BelowIcon";
- if ((((QToolButton *)widget())->textPosition())==(QToolButton::BesideIcon))
+ TQString szPos="BelowIcon";
+ if ((((TQToolButton *)widget())->textPosition())==(TQToolButton::BesideIcon))
szPos="BesideIcon";
c->returnValue()->setString(szPos);
return true;