| 1333 | } |
| 1334 | |
| 1335 | void MainWindow::keymapExport() { |
| 1336 | if (keypadBridge->getKeymapMode() == QtKeypadBridge::KEYMAP_NATURAL) { |
| 1337 | QMessageBox::warning(this, MSG_WARNING, tr("Natural keymap is not exportable")); |
| 1338 | return; |
| 1339 | } |
| 1340 | |
| 1341 | QString filter = tr("Keymap Config (*.ini)"); |
| 1342 | QString path = QFileDialog::getSaveFileName(this, tr("Save keymap configuration"), |
| 1343 | m_dir.absolutePath(), filter, &filter); |
| 1344 | if (path.isEmpty()) { |
| 1345 | return; |
| 1346 | } |
| 1347 | |
| 1348 | |
| 1349 | keypadBridge->keymapExport(path); |
| 1350 | } |
| 1351 | |
| 1352 | bool MainWindow::isFirstRun() { |
| 1353 | return !m_config->value(SETTING_FIRST_RUN, false).toBool(); |
nothing calls this directly
no test coverage detected