From b26fa9722f9e8c81406259f6db8044e8bbc2d50b Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 29 Sep 2020 13:09:19 +0200 Subject: Add multi key bindings to QShortcut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø Reviewed-by: Volker Hilsheimer Reviewed-by: Lars Knoll --- examples/widgets/itemviews/storageview/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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); -- cgit v1.2.3