Commit 78a56f68 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Rolling back to manual key sequence for "Quit"

parent bf17fe5d
......@@ -84,12 +84,13 @@ void VLMCSettingsDefault::loadKeyboardShortcutDefaults( const QString& part )
ADD_SHORTCUT( "Undo", QKeySequence( QKeySequence::Undo ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Redo", QKeySequence( QKeySequence::Redo ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Help", QKeySequence( QKeySequence::HelpContents ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Quit", QKeySequence( QKeySequence::Close ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Quit", "Ctrl+Q" );
ADD_SHORTCUT( "Preferences", "Alt+P" );
ADD_SHORTCUT( "Fullscreen", "F" );
ADD_SHORTCUT( "New project", QKeySequence( QKeySequence::New ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Open project", QKeySequence( QKeySequence::Open ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Save", QKeySequence( QKeySequence::Save ).toString().toLocal8Bit() );
ADD_SHORTCUT( "Save as", "Ctrl+Shift+S" );
ADD_SHORTCUT( "Close project", "Ctrl+W" );
return ;
}
......@@ -479,6 +479,7 @@ void MainWindow::initializeMenuKeyboardShortcut()
INIT_SHORTCUT( openProject, "Open project", actionLoad_Project );
INIT_SHORTCUT( save, "Save", actionSave );
INIT_SHORTCUT( saveAs, "Save as", actionSave_As );
INIT_SHORTCUT( closeProject, "Close project", actionClose_Project );
}
#undef INIT_SHORTCUT
......@@ -502,6 +503,8 @@ void MainWindow::keyboardShortcutChanged( const QString& name, const QString&
m_ui.actionSave->setShortcut( val );
else if ( name == "Save as" )
m_ui.actionSave_As->setShortcut( val );
else if ( name == "Close project" )
m_ui.actionClose_Project->setShortcut( val );
else
qWarning() << "Unknown shortcut:" << name;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment