From dc3b1acaa58ccbbe653f0b3120536de18bfe1600 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Thu, 29 Jun 2023 10:03:24 +0800 Subject: [PATCH] update --- src/imports/FluentUI/Controls/FluTableView.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/imports/FluentUI/Controls/FluTableView.qml b/src/imports/FluentUI/Controls/FluTableView.qml index 753f3924..18e3761e 100644 --- a/src/imports/FluentUI/Controls/FluTableView.qml +++ b/src/imports/FluentUI/Controls/FluTableView.qml @@ -62,11 +62,25 @@ Rectangle { Component{ id:com_text FluText { + id:item_text text: itemData anchors.fill: parent anchors.margins: 10 elide: Text.ElideRight + wrapMode: Text.WrapAnywhere verticalAlignment: Text.AlignVCenter + MouseArea{ + id:item_mouse + hoverEnabled: true + anchors.fill: parent + acceptedButtons: Qt.NoButton + FluTooltip{ + text: item_text.text + delay: 500 + visible: item_text.contentWidth < item_text.implicitWidth && item_text.contentHeight < item_text.implicitHeight && item_mouse.containsMouse + } + } + } } ScrollView{