Changeset 54a377c in confclerk_git for src/gui/mainwindow.cpp
- Timestamp:
- 04/02/13 23:28:06 (9 years ago)
- Branches:
- master, qt5
- Children:
- b261e79
- Parents:
- cdf0332
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
rcdf0332 r54a377c 64 64 mXmlParser = new ScheduleXmlParser(sqlEngine, this); 65 65 mNetworkAccessManager = new QNetworkAccessManager(this); 66 66 systemTrayIcon = new QSystemTrayIcon(qApp->windowIcon(), this); 67 alarmTimer = new QTimer(this); 68 69 alarmTimer->setInterval(60000); 70 alarmTimer->start(); 67 71 saved_title = windowTitle(); 68 72 … … 101 105 connect(searchTabContainer, SIGNAL(searchResultChanged()), SLOT(onSearchResultChanged())); 102 106 107 // systm tray icon 108 connect(systemTrayIcon, SIGNAL(messageClicked()), SLOT(onSystemTrayMessageClicked())); 109 110 // timer 111 connect(alarmTimer, SIGNAL(timeout()), SLOT(onAlarmTimerTimeout())); 103 112 104 113 useConference(Conference::activeConference()); … … 115 124 connect(mXmlParser, SIGNAL(parsingScheduleEnd(int)), conferenceModel, SLOT(newConferenceEnd(int))); 116 125 } 126 117 127 118 128 void MainWindow::on_aboutAction_triggered() … … 204 214 // No results were found 205 215 searchTabContainer->redisplayDate(dayNavigator->curDate()); 216 } 217 218 219 void MainWindow::onSystemTrayMessageClicked() { 220 // TODO: Hide icon 221 } 222 223 224 void MainWindow::onAlarmTimerTimeout() { 225 // TODO: Show Message if an alarm is set on an event that's starting soon and delete the corresponding alarm. 226 /* Example: 227 systemTrayIcon->show(); 228 systemTrayIcon->showMessage("title", "message", QSystemTrayIcon::Information, 1000); 229 QApplication::alert(this); 230 QApplication::beep(); 231 */ 206 232 } 207 233
Note: See TracChangeset
for help on using the changeset viewer.