summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-29 13:09:19 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-04 10:32:38 +0200
commitb26fa9722f9e8c81406259f6db8044e8bbc2d50b (patch)
tree30d443ac43663e1670c82621d88052e3be29141b /examples
parent8fa93272f0a1526e06105ea02c7ae5ca8f8c52c0 (diff)
Add multi key bindings to QShortcut
This makes it feature comparable with QAction, and makes it possible to use as a backend for QAction, and fixes a few missing alternative keybindings in qtwidgets. Change-Id: Iaefc630b96c4743fc5ef429dc841870ddd99fc64 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/widgets/itemviews/storageview/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/itemviews/storageview/main.cpp b/examples/widgets/itemviews/storageview/main.cpp
index fe916b039d..5505d8a984 100644
--- a/examples/widgets/itemviews/storageview/main.cpp
+++ b/examples/widgets/itemviews/storageview/main.cpp
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
StorageModel *model = new StorageModel(&view);
model->refresh();
- QShortcut *refreshShortcut = new QShortcut(Qt::CTRL | Qt::Key_R, &view);
+ QShortcut *refreshShortcut = new QShortcut(QKeySequence::Refresh, &view);
QObject::connect(refreshShortcut, &QShortcut::activated, model, &StorageModel::refresh);
view.setModel(model);