mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
Add addButtonVisibility into FluTabView.
This commit is contained in:
parent
9f9d9da601
commit
d939546f31
@ -35,6 +35,7 @@ Item {
|
||||
property int tabWidthBehavior : FluTabView.Equal
|
||||
property int closeButtonVisibility : FluTabView.Always
|
||||
property int itemWidth: 146
|
||||
property bool addButtonVisibility: true
|
||||
signal newPressed
|
||||
|
||||
QtObject {
|
||||
@ -51,6 +52,7 @@ Item {
|
||||
|
||||
FluIconButton{
|
||||
id:btn_new
|
||||
visible: addButtonVisibility
|
||||
width: 34
|
||||
height: 34
|
||||
x:Math.min(tab_nav.contentWidth,tab_nav.width)
|
||||
|
Loading…
Reference in New Issue
Block a user