From b261e795705bb24fccad4ed15d3457ea81b428eb Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Wed, 3 Apr 2013 16:54:51 +0000 Subject: [PATCH] tray icon: add (commented out) debug output and ->hide --- src/gui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.5