| 1498 | // ---------------------------------------------------------------------------- |
| 1499 | |
| 1500 | void SettingsWindow::createTrayIcon() |
| 1501 | { |
| 1502 | DEBUG_LOW_LEVEL << Q_FUNC_INFO; |
| 1503 | m_trayIcon = new SysTrayIcon(); |
| 1504 | connect(m_trayIcon, SIGNAL(quit()), this, SLOT(quit())); |
| 1505 | connect(m_trayIcon, SIGNAL(showSettings()), this, SLOT(showSettings())); |
| 1506 | connect(m_trayIcon, SIGNAL(toggleSettings()), this, SLOT(toggleSettings())); |
| 1507 | connect(m_trayIcon, SIGNAL(backlightOn()), this, SLOT(backlightOn())); |
| 1508 | connect(m_trayIcon, SIGNAL(backlightOff()), this, SLOT(backlightOff())); |
| 1509 | connect(m_trayIcon, SIGNAL(profileSwitched(QString)), this, SLOT(profileTraySwitch(QString))); |
| 1510 | |
| 1511 | m_trayIcon->init(); |
| 1512 | connect(this, SIGNAL(backlightStatusChanged(int)), this, SLOT(updateTrayAndActionStates())); |
| 1513 | } |
| 1514 | |
| 1515 | void SettingsWindow::updateUiFromSettings() |
| 1516 | { |