Warning, /utilities/kweather/src/qml/locationslist/LocationsListDialog.qml is written in an unsupported language. File is not indexed.

0001 // Copyright 2022 Devin Lin <espidev@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick
0005 import QtQuick.Controls
0006 import QtQuick.Layouts
0007 import org.kde.kirigami as Kirigami
0008 
0009 Kirigami.Dialog {
0010     id: root
0011     
0012     standardButtons: Kirigami.Dialog.NoButton
0013     parent: applicationWindow().overlay
0014     title: i18n("Locations")
0015     preferredHeight: Kirigami.Units.gridUnit * 20
0016     preferredWidth: Kirigami.Units.gridUnit * 20
0017     padding: 0
0018     
0019     customFooterActions: [
0020         Kirigami.Action {
0021             icon.name: "list-add"
0022             text: i18n("Add Location")
0023             onTriggered: {
0024                 root.close();
0025                 applicationWindow().openAddLocation();
0026             }
0027         }
0028     ]
0029     
0030     LocationsListView {
0031         onCloseRequested: root.close();
0032     }
0033 }