From: gregor herrmann Date: Wed, 3 Apr 2013 16:54:51 +0000 (+0000) Subject: tray icon: add (commented out) debug output and ->hide X-Git-Tag: 0.6.0~18 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/b261e795705bb24fccad4ed15d3457ea81b428eb tray icon: add (commented out) debug output and ->hide --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index ce54361..8b57535 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -218,13 +218,15 @@ void MainWindow::onSearchResultChanged() { void MainWindow::onSystemTrayMessageClicked() { // TODO: Hide icon + // systemTrayIcon->hide(); } void MainWindow::onAlarmTimerTimeout() { // TODO: Show Message if an alarm is set on an event that's starting soon and delete the corresponding alarm. - /* Example: + /* systemTrayIcon->show(); + qDebug() << systemTrayIcon->geometry(); // gets moved to the correct location only at second usage systemTrayIcon->showMessage("title", "message", QSystemTrayIcon::Information, 1000); QApplication::alert(this); QApplication::beep();