|
|
| version 1.1, 2003/11/26 15:08:42 | version 1.2, 2003/12/19 16:08:02 |
|---|---|
| Line 11 | Line 11 |
| #include "qt/xnp2.h" | #include "qt/xnp2.h" |
| #include "qt/qtdraw.h" | #include "qt/qtdraw.h" |
| #if QT_VERSION >= 300 | |
| #include <qeventloop.h> | #include <qeventloop.h> |
| #endif | |
| #include <qmenubar.h> | #include <qmenubar.h> |
| #include <qmessagebox.h> | #include <qmessagebox.h> |
| #include <qpopupmenu.h> | #include <qpopupmenu.h> |
| Line 99 gui_qt_widget_quit(void) | Line 101 gui_qt_widget_quit(void) |
| } | } |
| void | void |
| gui_qt_event_process(void) | |
| { | |
| // XXX Nothing to do | |
| } | |
| void | |
| gui_qt_set_window_title(const char* str) | gui_qt_set_window_title(const char* str) |
| { | { |
| Line 114 gui_toolkit_t qt_toolkit = { | Line 123 gui_toolkit_t qt_toolkit = { |
| gui_qt_widget_show, | gui_qt_widget_show, |
| gui_qt_widget_mainloop, | gui_qt_widget_mainloop, |
| gui_qt_widget_quit, | gui_qt_widget_quit, |
| gui_qt_event_process, | |
| gui_qt_set_window_title, | gui_qt_set_window_title, |
| }; | }; |
| Line 174 void | Line 184 void |
| emulationWindow::mainLoop() | emulationWindow::mainLoop() |
| { | { |
| if (!QApplication::eventLoop()->hasPendingEvents()) { | #if QT_VERSION >= 300 |
| if (!QApplication::eventLoop()->hasPendingEvents()) | |
| #else | |
| if (!hasPendingEvents()) | |
| #endif | |
| { | |
| mainloop(0); | mainloop(0); |
| } | } |
| } | } |