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 Member Functions | |
CustomMessageEvent (int t, const QString &s, int timeout=0) | |
const QString & | message () const |
int | timeout () const |
int | 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.
Gui::CustomMessageEvent::~CustomMessageEvent | ( | ) |
const QString & Gui::CustomMessageEvent::message | ( | ) | const |
Referenced by Gui::MainWindow::customEvent(), and addonmanager_workers.GitProgressMonitor::update().
int Gui::CustomMessageEvent::timeout | ( | ) | const |
Referenced by Gui::MainWindow::customEvent(), and package_details.PackageDetails::load_finished().
int Gui::CustomMessageEvent::type | ( | ) | const |