feat:The FluNavigationView component adds a Tooltip prompt to make the interaction more friendly.

This commit is contained in:
kevinlq 2023-11-06 23:25:22 +08:00
parent 35921ed900
commit cc4abbf79f
2 changed files with 20 additions and 0 deletions

View File

@ -176,6 +176,11 @@ Item {
leftMargin: 6 leftMargin: 6
rightMargin: 6 rightMargin: 6
} }
FluTooltip {
text: model.title
visible: item_control.hovered && model.title && d.isCompact
delay: 400
}
MouseArea{ MouseArea{
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
@ -455,6 +460,11 @@ Item {
leftMargin: 6 leftMargin: 6
rightMargin: 6 rightMargin: 6
} }
FluTooltip {
text: model.title
visible: item_control.hovered && model.title && d.isCompact
delay: 400
}
onClicked:{ onClicked:{
if(type === 0){ if(type === 0){
if(model.onTapListener){ if(model.onTapListener){

View File

@ -177,6 +177,11 @@ Item {
leftMargin: 6 leftMargin: 6
rightMargin: 6 rightMargin: 6
} }
FluTooltip {
text: model.title
visible: item_control.hovered && model.title && d.isCompact
delay: 400
}
MouseArea{ MouseArea{
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
@ -458,6 +463,11 @@ Item {
leftMargin: 6 leftMargin: 6
rightMargin: 6 rightMargin: 6
} }
FluTooltip {
text: model.title
visible: item_control.hovered && model.title && d.isCompact
delay: 400
}
onClicked:{ onClicked:{
if(type === 0){ if(type === 0){
if(model.onTapListener){ if(model.onTapListener){