summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_toolbar.cpp')
-rw-r--r--src/modules/objects/class_toolbar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/objects/class_toolbar.cpp b/src/modules/objects/class_toolbar.cpp
index ed280bd0..036c31ee 100644
--- a/src/modules/objects/class_toolbar.cpp
+++ b/src/modules/objects/class_toolbar.cpp
@@ -79,18 +79,18 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_toolbar)
bool KviKvsObject_toolbar::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- if (!parentObject())
+ if (!tqparentObject())
{
- pContext->warning(__tr2qs("the toolbar cannot be a parent-widget!"));
+ pContext->warning(__tr2qs("the toolbar cannot be a tqparent-widget!"));
return true;
}
- if(parentObject()->inherits("KviKvsObject_mainwindow"))
+ if(tqparentObject()->inherits("KviKvsObject_mainwindow"))
{
- setObject(new KviTalToolBar(name(), ((KviTalMainWindow *)parentScriptWidget())), true);
+ setObject(TQT_TQOBJECT(new KviTalToolBar(name(), ((KviTalMainWindow *)tqparentScriptWidget()))), true);
}
else
{
- pContext->warning(__tr2qs("The parent-widget isn't a MainWindow."));
+ pContext->warning(__tr2qs("The tqparent-widget isn't a MainWindow."));
}
return true;
@@ -103,7 +103,7 @@ bool KviKvsObject_toolbar::functionaddSeparator(KviKvsObjectFunctionCall *c)
}
bool KviKvsObject_toolbar::functionsetLabel(KviKvsObjectFunctionCall *c)
{
- QString szLabel;
+ TQString szLabel;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("label",KVS_PT_STRING,0,szLabel)
KVSO_PARAMETERS_END(c)
@@ -140,8 +140,8 @@ bool KviKvsObject_toolbar::functionsetStretchableWidget(KviKvsObjectFunctionCall
return TRUE;
}
#ifndef COMPILE_USE_QT4
- // FIXME: no support for this in Qt4 ?
- if(widget()) ((KviTalToolBar *)widget())->setStretchableWidget(((QWidget *)(ob->object())));
+ // FIXME: no support for this in TQt4 ?
+ if(widget()) ((KviTalToolBar *)widget())->setStretchableWidget(((TQWidget *)(ob->object())));
#endif //!COMPILE_USE_QT4
return true;
}