summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_dialog.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_dialog.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_dialog.cpp')
-rw-r--r--src/modules/objects/class_dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/objects/class_dialog.cpp b/src/modules/objects/class_dialog.cpp
index f062f004..b5515a7c 100644
--- a/src/modules/objects/class_dialog.cpp
+++ b/src/modules/objects/class_dialog.cpp
@@ -29,7 +29,7 @@
#include "kvi_frame.h"
#include "kvi_app.h"
-#include <qdialog.h>
+#include <tqdialog.h>
/*
@@ -46,10 +46,10 @@
@description:
Rappresents a dialog object. The class is really
similar to the widget class, it has only a couple of minor differences.
- A dialog is always a top-level widget, but if it has a parent, its default
- location is centered on top of the parent. It will also share the parent's taskbar entry.
+ A dialog is always a top-level widget, but if it has a tqparent, its default
+ location is centered on top of the tqparent. It will also share the tqparent's taskbar entry.
If you call $setModal(1) then the dialog will have non-blocking modal behaviour:
- it will appear above its parent widget and block its input until it's closed.
+ it will appear above its tqparent widget and block its input until it's closed.
@functions:
*/
@@ -68,11 +68,11 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_dialog)
bool KviKvsObject_dialog::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- QWidget * w = g_pApp->activeModalWidget();
+ TQWidget * w = TQT_TQWIDGET(g_pApp->activeModalWidget());
if(!w)w = g_pFrame;
- QDialog * d = new QDialog(parentScriptWidget() ? parentScriptWidget() : w,name());
+ TQDialog * d = new TQDialog(tqparentScriptWidget() ? tqparentScriptWidget() : w,name());
//d->setModal(true);
- setObject(d);
+ setObject(TQT_TQOBJECT(d));
return true;
}
bool KviKvsObject_dialog::functionSetModal(KviKvsObjectFunctionCall *c)
@@ -82,7 +82,7 @@ bool KviKvsObject_dialog::functionSetModal(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bEnabled",KVS_PT_BOOL,0,bEnabled)
KVSO_PARAMETERS_END(c)
if(widget())
- ((QDialog *)widget())->setModal(bEnabled);
+ ((TQDialog *)widget())->setModal(bEnabled);
return true;
}