diff options
author | deva <deva> | 2006-03-07 10:37:59 +0000 |
---|---|---|
committer | deva <deva> | 2006-03-07 10:37:59 +0000 |
commit | 1390ddfe6afe41dba141f8170f9b277573ebe8cd (patch) | |
tree | fd6861f3eab3a4721f2445540279a8223d7cd1a3 /client/info_gui.h | |
parent | 19ade36987f86c9b4cd4c5ec3fc6c499205c61ec (diff) |
*** empty log message ***
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__*/ |