void OcularDialog::keyBindingPopupNavigatorConfigChanged(const QString& newString) { Oculars::appSettings()->setValue("bindings/popup_navigator", newString); StelActionMgr* actionMgr = StelApp::getInstance().getStelActionManager(); StelAction* action = actionMgr->findAction("actionShow_Ocular_Menu"); if (action != NULL) { action->setShortcut(newString.trimmed()); } }
/* ********************************************************************* */ void OcularDialog::keyBindingTogglePluginChanged(const QString& newString) { Oculars::appSettings()->setValue("bindings/toggle_oculars", newString); StelActionMgr* actionMgr = StelApp::getInstance().getStelActionManager(); StelAction* action = actionMgr->findAction("actionShow_Ocular"); if (action != NULL) { action->setShortcut(newString.trimmed()); } }