Warning, /pim/itinerary/src/app/VerticalNavigationButton.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 import QtQuick 0005 import QtQuick.Layouts 0006 import QtQuick.Controls as QQC2 0007 import org.kde.kirigami as Kirigami 0008 import org.kde.kirigamiaddons.formcard as FormCard 0009 0010 ColumnLayout { 0011 id: root 0012 0013 required property string iconName 0014 required property string text 0015 0016 signal clicked 0017 0018 spacing: 0 0019 0020 FormCard.FormCard { 0021 Layout.fillWidth: true 0022 Layout.topMargin: root.visible ? Kirigami.Units.largeSpacing : 0 0023 Layout.bottomMargin: root.visible ? Kirigami.Units.largeSpacing : 0 0024 0025 FormCard.AbstractFormDelegate { 0026 id: button 0027 0028 onClicked: root.clicked() 0029 text: root.text 0030 0031 contentItem: RowLayout { 0032 Kirigami.Icon { 0033 source: root.iconName 0034 implicitWidth: Kirigami.Units.iconSizes.small 0035 implicitHeight: Kirigami.Units.iconSizes.small 0036 0037 Layout.rightMargin: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing 0038 } 0039 0040 QQC2.Label { 0041 text: root.text 0042 Layout.fillWidth: true 0043 } 0044 } 0045 0046 Layout.fillWidth: true 0047 Accessible.ignored: true 0048 } 0049 0050 Accessible.onPressAction: root.clicked() 0051 } 0052 } 0053