Files
qt-creator/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTabBar.qml
Mahmoud Badri ff32c0ef68 QmlDesigner: Ensure Content library tabs always visible
Tabs are now responsive with the width of the view. Also a tooltip
makes sure user can view the name of the tab in case it is elided.
Also wrapped the message that appears when the materials view is empty.

Fixes: QDS-13795
Change-Id: I43c08124696e252b834c846ae24975dd837400c5
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-10-15 13:14:29 +00:00

32 lines
786 B
QML

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
import QtQuick.Layouts
import HelperWidgets 2.0 as HelperWidgets
import StudioControls 1.0 as StudioControls
import StudioTheme 1.0 as StudioTheme
RowLayout {
id: root
property int currIndex: 0
property alias tabsModel: repeater.model
spacing: 6
Repeater {
id: repeater
ContentLibraryTabButton {
required property int index
required property var modelData
name: modelData.name
icon: modelData.icon
selected: root.currIndex === index
onClicked: root.currIndex = index
Layout.fillWidth: true
}
}
}