diff options
Diffstat (limited to 'src/modules/objects/class_dialog.cpp')
-rw-r--r-- | src/modules/objects/class_dialog.cpp | 16 |
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; } |