summaryrefslogtreecommitdiff
path: root/src/info_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/info_gui.h')
-rw-r--r--src/info_gui.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/info_gui.h b/src/info_gui.h
index 58fc67a..ca41e66 100644
--- a/src/info_gui.h
+++ b/src/info_gui.h
@@ -33,6 +33,7 @@
#include <QWidget>
#include <QApplication>
+#include <QEvent>
#include <pthread.h>
#include <semaphore.h>
@@ -43,18 +44,17 @@
#include "messagebox.h"
-#define TYPE_SHOW_MESSAGEBOX 65432
+#define TYPE_SHOW_MESSAGEBOX (enum QEvent::Type)(QEvent::User + 1)
-/* // TODO
-class ShowMessageEvent : public QCustomEvent {
+class ShowMessageEvent : public QEvent {
public:
ShowMessageEvent( MessageBox* msgbox )
- : QCustomEvent( TYPE_SHOW_MESSAGEBOX ), m( msgbox ) {}
+ : QEvent( TYPE_SHOW_MESSAGEBOX ), m( msgbox ) {}
MessageBox *messagebox() const { return m; }
private:
- MessageBox *m;;
+ MessageBox *m;
};
-*/
+
class InfoEventHandler : public QObject {
protected:
bool eventFilter( QObject *o, QEvent *e );