MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / setTop

Method setTop

gui/qt/settings.cpp:967–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967void 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
980void MainWindow::stateSaveInfo() {
981 QStringList slotNames;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected