Warning, /utilities/powerplant/src/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 // SPDX-FileCopyrightText: 2023 Mathis <mbb@kaidan.im> 0003 0004 import QtQuick 2.15 0005 import QtQuick.Controls 2.15 as Controls 0006 import QtQuick.Layouts 1.15 0007 import org.kde.kirigami 2.19 as Kirigami 0008 import org.kde.powerplant 1.0 0009 0010 Kirigami.ApplicationWindow { 0011 id: root 0012 0013 minimumWidth: Kirigami.Units.gridUnit * 20 0014 minimumHeight: Kirigami.Units.gridUnit * 20 0015 0016 pageStack { 0017 initialPage: "qrc:/PlantsPage.qml" 0018 popHiddenPages:true 0019 columnView.columnResizeMode: Kirigami.ColumnView.SingleColumn 0020 0021 globalToolBar { 0022 style: Kirigami.ApplicationHeaderStyle.ToolBar 0023 showNavigationButtons: if (applicationWindow().pageStack.currentIndex > 0 0024 || applicationWindow().pageStack.currentIndex > 0) { 0025 Kirigami.ApplicationHeaderStyle.ShowBackButton 0026 } else { 0027 0 0028 } 0029 } 0030 } 0031 }