summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-10-30 01:25:57 (GMT)
committerMarius Kintel <marius@kintel.net>2011-10-30 01:25:57 (GMT)
commit5070014b3a42ccb0e81ca36689e17351b5faaf13 (patch)
tree7fa94544fa4574e3f015c71c0ab0cda3f4c115fd /src
parent6b8fd15ff79ae90682992ee045f92f28b136c34a (diff)
Enable standard shortcuts for save and reload on Linux and Windows. F2/F3 will still work.
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index be82d26..f9c3ac6 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -218,8 +218,12 @@ MainWindow::MainWindow(const QString &filename)
connect(this->fileActionReload, SIGNAL(triggered()), this, SLOT(actionReload()));
connect(this->fileActionQuit, SIGNAL(triggered()), this, SLOT(quit()));
#ifndef __APPLE__
- this->fileActionSave->setShortcut(QKeySequence(Qt::Key_F2));
- this->fileActionReload->setShortcut(QKeySequence(Qt::Key_F3));
+ QList<QKeySequence> shortcuts = this->fileActionSave->shortcuts();
+ shortcuts.push_back(QKeySequence(Qt::Key_F2));
+ this->fileActionSave->setShortcuts(shortcuts);
+ shortcuts = this->fileActionReload->shortcuts();
+ shortcuts.push_back(QKeySequence(Qt::Key_F3));
+ this->fileActionReload->setShortcuts(shortcuts);
#endif
// Open Recent
for (int i = 0;i<maxRecentFiles; i++) {
contact: Jan Huwald // Impressum