summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_workspace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_workspace.cpp')
-rw-r--r--src/modules/objects/class_workspace.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/objects/class_workspace.cpp b/src/modules/objects/class_workspace.cpp
index 1f6d8a3e..90e36876 100644
--- a/src/modules/objects/class_workspace.cpp
+++ b/src/modules/objects/class_workspace.cpp
@@ -24,7 +24,7 @@
-#include <qworkspace.h>
+#include <tqworkspace.h>
#include "class_workspace.h"
#include "kvi_error.h"
#include "kvi_debug.h"
@@ -110,7 +110,7 @@
constructor[br]
{[br]
$$->$setGeometry(%X,%Y,100,100)[br]
- $$->%lay=$new(layout,$$)[br]
+ $$->%lay=$new(tqlayout,$$)[br]
%i=0[br]
while (%i<10)[br]
{[br]
@@ -184,13 +184,13 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_workspace)
bool KviKvsObject_workspace::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- setObject(new QWorkspace(parentScriptWidget(), name()), true);
+ setObject(TQT_TQOBJECT(new TQWorkspace(tqparentScriptWidget(), name())), true);
return true;
}
bool KviKvsObject_workspace::functionactiveWindow(KviKvsObjectFunctionCall *c)
{
- //if(widget()) c->returnValue()->setHObject((unsigned long)(((QWorkspace *)widget())->activeWindow()));
+ //if(widget()) c->returnValue()->setHObject((unsigned long)(((TQWorkspace *)widget())->activeWindow()));
// FIXME!
c->returnValue()->setHObject(0);
return true; //?pFIX ME?
@@ -199,7 +199,7 @@ bool KviKvsObject_workspace::functionactiveWindow(KviKvsObjectFunctionCall *c)
bool KviKvsObject_workspace::functionscrollBarsEnabled(KviKvsObjectFunctionCall *c)
{
if(widget())
- c->returnValue()->setBoolean(((QWorkspace *)widget())->scrollBarsEnabled());
+ c->returnValue()->setBoolean(((TQWorkspace *)widget())->scrollBarsEnabled());
return true;
}
@@ -210,42 +210,42 @@ bool KviKvsObject_workspace::functionsetscrollBarsEnabled(KviKvsObjectFunctionCa
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QWorkspace *)widget())->setScrollBarsEnabled(bEnabled);
+ ((TQWorkspace *)widget())->setScrollBarsEnabled(bEnabled);
return true;
}
bool KviKvsObject_workspace::functioncascade(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QWorkspace *)widget())->cascade();
+ ((TQWorkspace *)widget())->cascade();
return true;
}
bool KviKvsObject_workspace::functiontile(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QWorkspace *)widget())->tile();
+ ((TQWorkspace *)widget())->tile();
return true;
}
bool KviKvsObject_workspace::functioncloseActiveWindow(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QWorkspace *)widget())->closeActiveWindow();
+ ((TQWorkspace *)widget())->closeActiveWindow();
return true;
}
bool KviKvsObject_workspace::functioncloseAllWindows(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QWorkspace *)widget())->closeAllWindows();
+ ((TQWorkspace *)widget())->closeAllWindows();
return true;
}
bool KviKvsObject_workspace::functionactivateNextWindow(KviKvsObjectFunctionCall *c)
{
if(widget())
- ((QWorkspace *)widget())->activateNextWindow();
+ ((TQWorkspace *)widget())->activateNextWindow();
return true;
}
@@ -253,9 +253,9 @@ bool KviKvsObject_workspace::functionactivatePrevWindow(KviKvsObjectFunctionCall
{
if(widget()){
#ifdef COMPILE_USE_QT4
- ((QWorkspace *)widget())->activatePreviousWindow();
+ ((TQWorkspace *)widget())->activatePreviousWindow();
#else
- ((QWorkspace *)widget())->activatePrevWindow();
+ ((TQWorkspace *)widget())->activatePrevWindow();
#endif
}
return true;