summaryrefslogtreecommitdiff
path: root/client/info_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/info_gui.h')
-rw-r--r--client/info_gui.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/client/info_gui.h b/client/info_gui.h
index a4f5135..a607c0f 100644
--- a/client/info_gui.h
+++ b/client/info_gui.h
@@ -38,8 +38,9 @@
#include "miav_config.h"
-#include <qwidget.h>
-#include <qapplication.h>
+#include <QWidget>
+#include <QApplication>
+#include <QEvent>
#include <pthread.h>
#include <semaphore.h>
@@ -48,11 +49,13 @@
#define TYPE_SHOW_MESSAGEBOX 65432
-class ShowMessageEvent : public QCustomEvent {
+class ShowMessageEvent : public QEvent {
public:
- ShowMessageEvent( MessageBox* msgbox )
- : QCustomEvent( TYPE_SHOW_MESSAGEBOX ), m( msgbox ) {}
+ ShowMessageEvent( MessageBox* msgbox ) :
+ QEvent((QEvent::Type)TYPE_SHOW_MESSAGEBOX),
+ m( msgbox ) {}
MessageBox *messagebox() const { return m; }
+ // Type type() const { return TYPE_SHOW_MESSAGEBOX; }
private:
MessageBox *m;;
};