Warning, /utilities/kweather/src/qml/settings/SettingsWindow.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Devin Lin <espidev@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003
0004 import QtQuick
0005 import QtQuick.Controls as Controls
0006 import QtQuick.Layouts
0007
0008 import org.kde.kirigami as Kirigami
0009
0010 // A settings window is used on desktop when the app is widescreen.
0011 Kirigami.ApplicationWindow {
0012 id: root
0013 title: i18n("Settings")
0014 flags: Qt.WindowStaysOnTopHint
0015
0016 height: Kirigami.Units.gridUnit * 26
0017 width: Kirigami.Units.gridUnit * 34
0018
0019 Kirigami.Theme.inherit: false
0020 Kirigami.Theme.colorSet: Kirigami.Theme.Window
0021
0022 pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.ToolBar;
0023 pageStack.globalToolBar.showNavigationButtons: Kirigami.ApplicationHeaderStyle.ShowBackButton;
0024 pageStack.columnView.columnResizeMode: Kirigami.ColumnView.SingleColumn
0025 pageStack.popHiddenPages: true
0026
0027 pageStack.initialPage: Kirigami.ScrollablePage {
0028 topPadding: 0
0029 leftPadding: 0
0030 rightPadding: 0
0031
0032 globalToolBarStyle: Kirigami.ApplicationHeaderStyle.None
0033
0034 ColumnLayout {
0035 Kirigami.Separator { Layout.fillWidth: true }
0036
0037 SettingsComponent {
0038 Layout.topMargin: Kirigami.Units.gridUnit
0039 Layout.fillWidth: true
0040 onCloseRequested: dialog.close()
0041 }
0042 }
0043 }
0044 }
0045