summaryrefslogtreecommitdiff
path: root/share/qtcreator/qmldesigner/itemLibraryQmlSources
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-11-25 16:55:26 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-11-28 10:35:25 +0000
commitee10ba1909bec243e2a65d5fd191e38628b1d130 (patch)
treeef796c3d59f9021819e8ce6d38941cb1b1876339 /share/qtcreator/qmldesigner/itemLibraryQmlSources
parent5544cdc276612de1c1672fc89a808e4f471f713f (diff)
downloadqt-creator-ee10ba1909bec243e2a65d5fd191e38628b1d130.tar.gz
QmlDesigner: Add support for tooltip in item library
This allows to define tool tips in the .metainfo files. Change-Id: I3236c6e9f374a052e99b18d8c3983bfd0f072162 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'share/qtcreator/qmldesigner/itemLibraryQmlSources')
-rw-r--r--share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
index b454ca7d84..72e7b8ba39 100644
--- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
+++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
@@ -68,6 +68,8 @@ Item {
id: mouseRegion
anchors.fill: parent
+ tooltip: toolTip
+
onShowContextMenu: delegateRoot.showContextMenu()
onPressed: (mouse)=> {
allowTooltip = false