aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 15:28:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 15:30:27 -0700
commit49053e86aa61a359a15eda0e67b4fa2c293122e0 (patch)
treea5111d6868fba2eb7738923e46ad4764f986d7e5 /qt-ui/profile/profilewidget2.cpp
parent2cfa7fead0b1ea351b5c738785ce5c54248a4888 (diff)
downloadsubsurface-49053e86aa61a359a15eda0e67b4fa2c293122e0.tar.gz
Make most of the shortcuts widget specific
Having the window specific means that you can't have a key do different things on different widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index ccdbe1888..54af27ba3 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -1044,8 +1044,10 @@ void ProfileWidget2::disconnectTemporaryConnections()
disconnect(plannerModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
this, SLOT(pointsRemoved(const QModelIndex &, int, int)));
- Q_FOREACH (QAction *action, actionsForKeys.values())
+ Q_FOREACH (QAction *action, actionsForKeys.values()) {
action->setShortcut(QKeySequence());
+ action->setShortcutContext(Qt::WidgetShortcut);
+ }
}
void ProfileWidget2::pointInserted(const QModelIndex &parent, int start, int end)