Merge pull request #67 from mentalfl0w/dev

Add addButtonVisibility into FluTabView.
This commit is contained in:
zhuzichu 2023-04-20 23:16:51 +08:00 committed by GitHub
commit 1a9cca4300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)