| 260 | } |
| 261 | |
| 262 | void MainWidget::receiveMessage(QString message) |
| 263 | { |
| 264 | // a timeout is added before the popups are displayed to prevent them from |
| 265 | // appearing in the wrong location |
| 266 | if(!sleptOnce) { |
| 267 | Sleeper::sleep(1); |
| 268 | sleptOnce = true; |
| 269 | } |
| 270 | |
| 271 | if(trayIcon->isVisible()) |
| 272 | trayIcon->showMessage(tr("Information"), message); |
| 273 | } |
| 274 | |
| 275 | MainWidget::~MainWidget() |
| 276 | { |
nothing calls this directly
no test coverage detected