From 3151134ee3e792bc5c3dad0d06c4fbe3e404c4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 24 Apr 2008 13:11:41 +0000 Subject: [PATCH] [GB.QT4] * BUG: The component runs now. But it is full of bug! git-svn-id: svn://localhost/gambas/trunk@1339 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gb.qt4/src/main.cpp b/gb.qt4/src/main.cpp index 7bfb6b0f2..4e41ab76e 100644 --- a/gb.qt4/src/main.cpp +++ b/gb.qt4/src/main.cpp @@ -289,12 +289,13 @@ bool MyEventLoop::processEvents(ProcessEventsFlags flags) /** MyApplication **********************************************************/ +bool MyApplication::_tooltip_disable = false; +int MyApplication::_event_filter = 0; +QEventLoop *MyApplication::eventLoop = 0; + MyApplication::MyApplication(int &argc, char **argv) : QApplication(argc, argv) { - _event_filter = 0; - _tooltip_disable = false; - eventLoop = 0; } static bool QT_EventFilter(QEvent *e) @@ -952,9 +953,9 @@ int EXPORT GB_INFO(const char *key, void **value) } #endif -#ifndef NO_X_WINDOW +/*#ifndef NO_X_WINDOW extern Time qt_x_time; -#endif +#endif*/ static void activate_main_window(int value) { @@ -971,9 +972,9 @@ static void activate_main_window(int value) win = (MyMainWindow *)win->topLevelWidget(); if (win) { - #ifndef NO_X_WINDOW + /*#ifndef NO_X_WINDOW qt_x_time = CurrentTime; - #endif + #endif*/ win->raise(); win->setActiveWindow(); }