void MainWindow::setShortcut(){ openAct->setShortcut(keys.value("open")); rdOpenAct->setShortcut(keys.value("rdopen")); saveAct->setShortcut(keys.value("save")); exitAct->setShortcut(keys.value("exit"));}
void MainWindow::initShortcutDefault(){ keys.clear(); keys.insert("open", tr("Ctrl+o")); keys.insert("rdopen", tr("Ctrl+r")); keys.insert("save", tr("Ctrl+s")); keys.insert("exit", tr("Ctrl+x"));}