From 2cf3e72be21545981f27b838832a055d1dc27489 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: Thu, 23 Mar 2023 15:10:21 +0800 Subject: NavLinks replace TabItem --- Course/Detail/Classic/Content/Main.ui.qml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'Course/Detail/Classic') diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml index a1071e7..91cbce3 100644 --- a/Course/Detail/Classic/Content/Main.ui.qml +++ b/Course/Detail/Classic/Content/Main.ui.qml @@ -3,8 +3,8 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import QtGraphicalEffects 1.15 import Bootstrap 5.3 -import "../../../.." import "../../../../Label" as Lbl +import "../../../../Button/NavLink" as NavLink import "Main/TabContents" as MainTabContents ColumnLayout { @@ -58,21 +58,7 @@ ColumnLayout { model: ["Overview", "Curriculum", "Instructor", "Reviews", "FAQs", "Comment"] - delegate: TabItem { - contentItem: Text { - text: modelData - color: "#066ac9" - font { - family: Bootstrap.bodyFont.family - weight: Bootstrap.bodyFont.weight - pointSize: Bootstrap.bodyFont.pointSize - } - } - background: Rectangle { - color: index == currentIndex ? "#1a0fffff" : "transparent" - radius: 5.2 - } - } + delegate: NavLink.TabsLine {} } StackLayout { -- cgit v1.2.3