11#include <QApplication>
26 int millisecondsTimeoutHint) {
35 QSystemTrayIcon sysTrayIcon(qApp);
37 QIcon windowIcon = qApp->windowIcon();
39 if (windowIcon.isNull()) {
41 windowIcon = QIcon(
":/images/MantidIcon.ico");
42 }
catch (
const std::exception &) {
44 windowIcon = QIcon(QPixmap(32, 32));
48 sysTrayIcon.setIcon(windowIcon);
51 sysTrayIcon.showMessage(title, message, icon, millisecondsTimeoutHint);
66 }
catch (
const Poco::ExistsException &) {
Records the filename and the description of failure.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
A simple class that provides a wall-clock (not processor time) timer.
float elapsed_no_reset() const
Returns the wall-clock time elapsed in seconds since the Timer object's creation, or the last call to...
void reset()
Explicitly reset the timer.