diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-11-25 16:55:26 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-11-28 10:35:25 +0000 |
commit | ee10ba1909bec243e2a65d5fd191e38628b1d130 (patch) | |
tree | ef796c3d59f9021819e8ce6d38941cb1b1876339 /share/qtcreator/qmldesigner | |
parent | 5544cdc276612de1c1672fc89a808e4f471f713f (diff) | |
download | qt-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')
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml | 2 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImagePreviewTooltipArea.qml | 2 |
2 files changed, 3 insertions, 1 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 diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImagePreviewTooltipArea.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImagePreviewTooltipArea.qml index e390906b9f..ae46115889 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImagePreviewTooltipArea.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImagePreviewTooltipArea.qml @@ -5,7 +5,7 @@ import QtQuick 2.15 import QtQuick.Layouts 1.15 import HelperWidgets 2.0 -MouseArea { +ToolTipArea { id: mouseArea property bool allowTooltip: true |