Warning, /plasma/libplasma/examples/applets/widgetgallery/platformcontents/application/tablet/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2011 Daker Fernandes Pinheiro <dakerfp@gmail.com>
0003
0004 SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick
0008 import org.kde.plasma.plasmoid
0009 import org.kde.plasma.components
0010
0011 Image {
0012 Layout.minimumWidth: 300
0013 Layout.minimumHeight: 400
0014 source: "image://appbackgrounds/standard"
0015 fillMode: Image.Tile
0016 asynchronous: true
0017
0018 ToolBar {
0019 id: toolBar
0020 anchors {
0021 top: parent.top
0022 left: parent.left
0023 right: parent.right
0024 }
0025 }
0026
0027
0028 Image {
0029 id: sidebar
0030 source: "image://appbackgrounds/contextarea"
0031 fillMode: Image.Tile
0032 asynchronous: true
0033 width: 200
0034 z: 10
0035 anchors {
0036 top: toolBar.bottom
0037 bottom: parent.bottom
0038 }
0039 Image {
0040 source: "image://appbackgrounds/shadow-right"
0041 fillMode: Image.Tile
0042 anchors {
0043 left: parent.right
0044 top: parent.top
0045 bottom: parent.bottom
0046 leftMargin: -1
0047 }
0048 }
0049
0050 ListView {
0051 id: pageSelector
0052 clip: true
0053 anchors.fill: parent
0054
0055 model: ListModel {
0056 id: pagesModel
0057 ListElement {
0058 page: "Buttons.qml"
0059 title: "Buttons"
0060 }
0061 ListElement {
0062 page: "CheckableButtons.qml"
0063 title: "Checkable buttons"
0064 }
0065 ListElement {
0066 page: "Busy.qml"
0067 title: "Busy indicators"
0068 }
0069 ListElement {
0070 page: "Sliders.qml"
0071 title: "Sliders"
0072 }
0073 ListElement {
0074 page: "Scrollers.qml"
0075 title: "Scrollers"
0076 }
0077 ListElement {
0078 page: "Texts.qml"
0079 title: "Text elements"
0080 }
0081 ListElement {
0082 page: "Misc.qml"
0083 title: "Misc stuff"
0084 }
0085 }
0086 delegate: ListItem {
0087 enabled: true
0088 Column {
0089 Label {
0090 text: title
0091 }
0092 }
0093 onClicked: pageStack.replace(Qt.createComponent(Plasmoid.file("ui", page)))
0094 }
0095 }
0096 }
0097
0098
0099 PageStack {
0100 id: pageStack
0101 toolBar: toolBar
0102 anchors {
0103 top: toolBar.bottom
0104 left: sidebar.right
0105 right: parent.right
0106 bottom: parent.bottom
0107 }
0108 initialPage: Qt.createComponent("Buttons.qml")
0109 }
0110
0111 }