Warning, /plasma/libplasma/examples/applets/widgetgallery/contents/ui/Menu.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2011 Daker Fernandes Pinheiro <dakerfp@gmail.com> 0003 SPDX-FileCopyrightText: 2011 Marco Martin <mart@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 0009 import org.kde.plasma.components 0010 0011 Page { 0012 ListView { 0013 id: pageSelector 0014 clip: true 0015 anchors.fill: parent 0016 0017 model: ListModel { 0018 id: pagesModel 0019 ListElement { 0020 page: "Buttons.qml" 0021 title: "Buttons" 0022 } 0023 ListElement { 0024 page: "CheckableButtons.qml" 0025 title: "Checkable buttons" 0026 } 0027 ListElement { 0028 page: "Busy.qml" 0029 title: "Busy indicators" 0030 } 0031 ListElement { 0032 page: "Sliders.qml" 0033 title: "Sliders" 0034 } 0035 ListElement { 0036 page: "Scrollers.qml" 0037 title: "Scrollers" 0038 } 0039 ListElement { 0040 page: "Texts.qml" 0041 title: "Text elements" 0042 } 0043 ListElement { 0044 page: "Typography.qml" 0045 title: "Typography" 0046 } 0047 ListElement { 0048 page: "Misc.qml" 0049 title: "Misc stuff" 0050 } 0051 } 0052 delegate: ListItem { 0053 enabled: true 0054 Column { 0055 Label { 0056 text: title 0057 } 0058 } 0059 onClicked: pageStack.push(Qt.createComponent(page)) 0060 } 0061 } 0062 ScrollBar { 0063 id: verticalScrollBar 0064 0065 orientation: Qt.Vertical 0066 flickableItem: pageSelector 0067 anchors { 0068 top: parent.top 0069 right: parent.right 0070 bottom: parent.bottom 0071 } 0072 } 0073 }