Merge pull request #330 from kevinlq/main

FluNavigationView 组件增加了 tooltip 提示,交互更友好些。
This commit is contained in:
zhuzichu 2023-11-07 10:48:59 +08:00 committed by GitHub
commit 40ce63e1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

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

View File

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