diff options
Diffstat (limited to 'client/info_gui.h')
-rw-r--r-- | client/info_gui.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/client/info_gui.h b/client/info_gui.h index a607c0f..e429e87 100644 --- a/client/info_gui.h +++ b/client/info_gui.h @@ -51,13 +51,18 @@ class ShowMessageEvent : public QEvent { public: - ShowMessageEvent( MessageBox* msgbox ) : + ShowMessageEvent(QString message, QString title, msg_icon icon) : QEvent((QEvent::Type)TYPE_SHOW_MESSAGEBOX), - m( msgbox ) {} - MessageBox *messagebox() const { return m; } - // Type type() const { return TYPE_SHOW_MESSAGEBOX; } + m(message), t(title), i(icon) {} + + QString message() const { return m; } + QString title() const { return t; } + msg_icon icon() const { return i; } + private: - MessageBox *m;; + QString m; + QString t; + msg_icon i; }; class InfoEventHandler : public QObject { @@ -68,20 +73,15 @@ protected: class InfoGui: public Info { public: - InfoGui(QApplication *a, QWidget *p, MiavConfig *config); + InfoGui(MiavConfig *config); ~InfoGui(); void error(char* fmt, ...); void warn(char* fmt, ...); void info(char* fmt, ...); - void setParent(QWidget *p); - private: void showmsg(char *msg, char *title, msg_icon icon); - - QApplication *qapp; - QWidget *parent; }; #endif/*__MIAV_INFO_GUI_H__*/ |