| 965 | } |
| 966 | |
| 967 | void MainWindow::setTop(bool state) { |
| 968 | if (state) { |
| 969 | setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); |
| 970 | } else { |
| 971 | setWindowFlags(windowFlags() & ~Qt::WindowStaysOnTopHint); |
| 972 | } |
| 973 | if (m_setup) { |
| 974 | show(); |
| 975 | } |
| 976 | m_config->setValue(SETTING_ALWAYS_ON_TOP, state); |
| 977 | ui->checkAlwaysOnTop->setCheckState(state ? Qt::Checked : Qt::Unchecked); |
| 978 | } |
| 979 | |
| 980 | void MainWindow::stateSaveInfo() { |
| 981 | QStringList slotNames; |
nothing calls this directly
no outgoing calls
no test coverage detected