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

Method quit

Software/src/SettingsWindow.cpp:1643–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1641// ----------------------------------------------------------------------------
1642
1643void SettingsWindow::quit()
1644{
1645 if (!ui->checkBox_KeepLightsOnAfterExit->isChecked())
1646 {
1647 // Process all currently pending signals (which may include updating the color signals)
1648 QApplication::processEvents(QEventLoop::AllEvents, 1000);
1649
1650 emit switchOffLeds();
1651 QApplication::processEvents(QEventLoop::AllEvents, 1000);
1652 }
1653
1654 DEBUG_LOW_LEVEL << Q_FUNC_INFO << "trayIcon->hide();";
1655
1656 if (m_trayIcon!=NULL) {
1657 m_trayIcon->hide();
1658 }
1659
1660 DEBUG_LOW_LEVEL << Q_FUNC_INFO << "QApplication::quit();";
1661
1662 QApplication::quit();
1663}
1664
1665void SettingsWindow::adjustSizeAndMoveCenter()
1666{

Callers 1

action_quitFunction · 0.80

Calls 1

hideMethod · 0.45

Tested by

no test coverage detected