MCPcopy Create free account
hub / github.com/Atarity/Lightpack / createTrayIcon

Method createTrayIcon

Software/src/SettingsWindow.cpp:1500–1513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1498// ----------------------------------------------------------------------------
1499
1500void 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
1515void SettingsWindow::updateUiFromSettings()
1516{

Callers 1

initializeAllMethod · 0.80

Calls 1

initMethod · 0.45

Tested by

no test coverage detected