diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/Section.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/Section.qml index 0f192f8875f..4cc0c747f73 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/Section.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/Section.qml @@ -13,6 +13,7 @@ Item { readonly property bool __isSection: true // used by property search logic property string caption: "Title" + property string captionTooltip: "" property color labelColor: StudioTheme.Values.themeTextColor property int labelCapitalization: Font.AllUppercase property alias sectionHeight: header.height @@ -40,6 +41,20 @@ Item { font.capitalization: section.labelCapitalization anchors.verticalCenter: parent?.verticalCenter textFormat: Text.RichText + + MouseArea { + id: labelMouseArea + + anchors.fill: parent + acceptedButtons: Qt.NoButton + hoverEnabled: true + enabled: section.captionTooltip !== "" + } + + StudioControls.ToolTip { + visible: labelMouseArea.containsMouse + text: section.captionTooltip + } } property Item icons