From aed499a0a6fdc43f61930dcd36bc04f5602cbaae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 3 Mar 2023 09:55:27 +0800 Subject: Tab item doesn't need to be overridden in general cases. --- TabItem.ui.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TabItem.ui.qml b/TabItem.ui.qml index c44f1a3..e0bb31c 100644 --- a/TabItem.ui.qml +++ b/TabItem.ui.qml @@ -2,7 +2,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 Button { - id: button property int currentIndex: 0 property bool doesntEmbed: Qt.platform.os === "android" || Qt.platform.os === "linux" @@ -18,9 +17,8 @@ Button { height: 38 horizontalPadding: 16 verticalPadding: 8 - text: modelData contentItem: Text { - text: button.text + text: modelData color: index == currentIndex ? "white" : "#066ac9" font { family: doesntEmbed ? "Roboto" : regular.name -- cgit v1.2.3