Warning, /utilities/kweather/src/qml/locationslist/LocationsListPage.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Han Young <hanyoung@protonmail.com> 0003 * SPDX-FileCopyrightText: 2020-2022 Devin Lin <espidev@gmail.com> 0004 * SPDX-FileCopyrightText: 2021 Nicolas Fella <nicolas.fella@gmx.de> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 import QtQuick 0010 import QtQuick.Controls 0011 import QtQuick.Layouts 0012 import org.kde.kirigami as Kirigami 0013 0014 0015 Kirigami.ScrollablePage { 0016 title: i18n("Locations") 0017 0018 property real yTranslate: 0 0019 property int currentIndex: 0 0020 0021 globalToolBarStyle: Kirigami.ApplicationHeaderStyle.ToolBar 0022 actions: [ 0023 Kirigami.Action { 0024 icon.name: "list-add" 0025 text: i18n("Add Location") 0026 onTriggered: applicationWindow().openAddLocation() 0027 } 0028 ] 0029 0030 LocationsListView { 0031 transform: Translate { y: yTranslate } 0032 } 0033 }