summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_workspace.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/objects/class_workspace.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;