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

Method keymapExport

gui/qt/settings.cpp:1335–1350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333}
1334
1335void 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
1352bool MainWindow::isFirstRun() {
1353 return !m_config->value(SETTING_FIRST_RUN, false).toBool();

Callers

nothing calls this directly

Calls 1

getKeymapModeMethod · 0.80

Tested by

no test coverage detected