2023-02-09 09:17:00 +01:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2022-10-26 19:57:41 +03:00
|
|
|
|
|
|
|
import QtQuick
|
2023-02-09 09:17:00 +01:00
|
|
|
import HelperWidgets 2.0 as HelperWidgets
|
|
|
|
import StudioControls 1.0 as StudioControls
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2022-10-26 19:57:41 +03:00
|
|
|
|
2023-02-13 11:20:27 +01:00
|
|
|
Row {
|
2022-10-26 19:57:41 +03:00
|
|
|
id: root
|
2023-02-13 11:20:27 +01:00
|
|
|
|
2022-10-26 19:57:41 +03:00
|
|
|
property int currIndex: 0
|
|
|
|
property alias tabsModel: repeater.model
|
|
|
|
|
2023-02-13 11:20:27 +01:00
|
|
|
spacing: 6
|
|
|
|
|
|
|
|
Repeater {
|
|
|
|
id: repeater
|
2022-10-26 19:57:41 +03:00
|
|
|
|
2023-02-13 11:20:27 +01:00
|
|
|
ContentLibraryTabButton {
|
|
|
|
required property int index
|
|
|
|
required property var modelData
|
|
|
|
name: modelData.name
|
|
|
|
icon: modelData.icon
|
|
|
|
selected: root.currIndex === index
|
|
|
|
onClicked: root.currIndex = index
|
2022-10-26 19:57:41 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|