tray icon: add (commented out) debug output and ->hide
authorgregor herrmann <gregoa@debian.org>
Wed, 3 Apr 2013 16:54:51 +0000 (16:54 +0000)
committergregor herrmann <gregoa@debian.org>
Wed, 3 Apr 2013 16:54:51 +0000 (16:54 +0000)
src/gui/mainwindow.cpp

index ce54361..8b57535 100644 (file)
@@ -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();