summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qshortcut_widgets.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge QGuiShortcut and QShortcut again in QtGuiVolker Hilsheimer2020-03-291-0/+358
QShortcut has only one widget specific feature, which is whatsThis; that is just a QString, so the setters and getters can just as well be in QtGui. The widgets specific implementation of shortcut matching and of showing the whatsThis balloon stays in QtWidgets, in the private implementation. Using virtual functions in the private we can override the empty default in QtGui, and by adding a virtual factory function in QGuiApplication, the correct private is instantiated depending on the kind of application running. Change-Id: I09ae4a5482f9fb70940c5e2bfe76d3d7fd710afc Reviewed-by: Lars Knoll <lars.knoll@qt.io>