Add addButtonVisibility into FluTabView.

main
Mentalflow 2023-04-20 22:57:56 +08:00
parent 9f9d9da601
commit d939546f31
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Item {
property int tabWidthBehavior : FluTabView.Equal property int tabWidthBehavior : FluTabView.Equal
property int closeButtonVisibility : FluTabView.Always property int closeButtonVisibility : FluTabView.Always
property int itemWidth: 146 property int itemWidth: 146
property bool addButtonVisibility: true
signal newPressed signal newPressed
QtObject { QtObject {
@ -51,6 +52,7 @@ Item {
FluIconButton{ FluIconButton{
id:btn_new id:btn_new
visible: addButtonVisibility
width: 34 width: 34
height: 34 height: 34
x:Math.min(tab_nav.contentWidth,tab_nav.width) x:Math.min(tab_nav.contentWidth,tab_nav.width)