summaryrefslogtreecommitdiff
path: root/src/quick/util/qquickutilmodule.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-10-22 07:31:37 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-16 17:33:41 +0000
commita7fd83cd0cecb789006baecabfc6a49c49b7f48c (patch)
tree069fbf66e53c046770d0083197ba822efe884f45 /src/quick/util/qquickutilmodule.cpp
parente21a699dca60b816a48956c26e1366cfd3ff04dc (diff)
downloadqtdeclarative-a7fd83cd0cecb789006baecabfc6a49c49b7f48c.tar.gz
Shortcut: add support for multiple key sequences
[ChangeLog][QtQuick][Shortcut] Added support for multiple shortcut sequences. Previously it was possible to specify a single sequence that could consist of up to four key presses. Now it is possible to specify multiple sequences that can each consist of multiple key presses. Change-Id: Id12f25da2f352cc542ec776049d8e81593951d41 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/util/qquickutilmodule.cpp')
-rw-r--r--src/quick/util/qquickutilmodule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/util/qquickutilmodule.cpp b/src/quick/util/qquickutilmodule.cpp
index 7e2973a78b..cb586d1565 100644
--- a/src/quick/util/qquickutilmodule.cpp
+++ b/src/quick/util/qquickutilmodule.cpp
@@ -123,4 +123,6 @@ void QQuickUtilModule::defineModule()
qmlRegisterType<QQuickShortcut>("QtQuick", 2, 5, "Shortcut");
qmlRegisterType<QQuickShortcut,1>("QtQuick", 2, 6, "Shortcut");
+
+ qmlRegisterType<QQuickShortcut,9>("QtQuick", 2, 9, "Shortcut");
}