From d939546f31ac02fb02954853961cd1944225f8ab Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Thu, 20 Apr 2023 22:57:56 +0800 Subject: [PATCH] Add addButtonVisibility into FluTabView. --- src/controls/FluTabView.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controls/FluTabView.qml b/src/controls/FluTabView.qml index f0b96084..6cdd7ea3 100644 --- a/src/controls/FluTabView.qml +++ b/src/controls/FluTabView.qml @@ -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)