Warning, /plasma/libplasma/tests/components/tabbar3.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Marco Martin <notmart@gmail.com>
0003  * SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 import QtQuick
0007 import QtQuick.Layouts
0008 import org.kde.plasma.components as PlasmaComponents
0009 
0010 ComponentBase {
0011     id: root
0012     title: "Plasma Components 3 TabBar with TabButtons"
0013     contentItem: PlasmaComponents.TabBar {
0014         implicitWidth: tabButton2.implicitWidth*4
0015         PlasmaComponents.TabButton {
0016             icon.name: "application-menu"
0017             text: "Icon Only"
0018             display: PlasmaComponents.TabButton.IconOnly
0019         }
0020         PlasmaComponents.TabButton {
0021             id: tabButton2
0022             icon.name: "application-menu"
0023             text: "Text Beside Icon"
0024             display: PlasmaComponents.TabButton.TextBesideIcon
0025         }
0026         PlasmaComponents.TabButton {
0027             icon.name: "application-menu"
0028             text: "Text Under Icon"
0029             display: PlasmaComponents.TabButton.TextUnderIcon
0030         }
0031         PlasmaComponents.TabButton {
0032             icon.name: "application-menu"
0033             text: "Text Only"
0034             display: PlasmaComponents.TabButton.TextOnly
0035         }
0036     }
0037 }
0038