The CustomMessageEvent class is used to send messages as events in the methods Error(), Warning() and Message() of the StatusBarObserver class to the main window to display them on the status bar instead of printing them directly to the status bar. More...
Public Types | |
enum | Type { Msg, Wrn, Err, Log } |
Public Member Functions | |
CustomMessageEvent (Type t, const QString &s) | |
const QString & | message () const |
Type | type () const |
~CustomMessageEvent () |
The CustomMessageEvent class is used to send messages as events in the methods Error(), Warning() and Message() of the StatusBarObserver class to the main window to display them on the status bar instead of printing them directly to the status bar.
This makes the usage of StatusBarObserver thread-safe.
Definition at line 1491 of file MainWindow.cpp.
Definition at line 1494 of file MainWindow.cpp.
Gui::CustomMessageEvent::CustomMessageEvent | ( | Type | t, | |
const QString & | s | |||
) | [inline] |
Definition at line 1495 of file MainWindow.cpp.
Gui::CustomMessageEvent::~CustomMessageEvent | ( | ) | [inline] |
Definition at line 1498 of file MainWindow.cpp.
const QString& Gui::CustomMessageEvent::message | ( | ) | const [inline] |
Definition at line 1502 of file MainWindow.cpp.
References draftTools::msg().
Referenced by Gui::MainWindow::customEvent().
Type Gui::CustomMessageEvent::type | ( | ) | const [inline] |
Definition at line 1500 of file MainWindow.cpp.
Referenced by Gui::MainWindow::customEvent().