Kstars

LocationLoading.qml
1// SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4import QtQuick.Controls 2.0
5import QtQuick 2.7
6import QtQuick.Layouts 1.1
7import "../../constants" 1.0
8import "../../modules"
9import QtPositioning 5.2
10
11Popup {
12 x: (window.width - width) / 2
13 y: window.height / 6
14 focus: true
15 modal: true
16
17 background: Rectangle {
18 anchors.fill: parent
19 color: Num.sysPalette.base
20 }
21
22 ColumnLayout {
23 id: aboutDialog
24 focus: true
25 width: Math.min(window.width, window.height) / 3 * 2
26
27 Column {
28 id: loadingColumn
29 width: parent.width
30
31 BusyIndicator {
32 anchors.horizontalCenter: parent.horizontalCenter
33 }
34
35 KSLabel {
36 id: fetchText
37 width: parent.width
38 wrapMode: Label.Wrap
39 horizontalAlignment: Label.AlignHCenter
40 text: locationEdit.loadingText
41 }
42
43 Button {
44 anchors.horizontalCenter: parent.horizontalCenter
45 text: xi18n("Cancel")
46 onClicked: {
47 close()
48 }
49 }
50 }
51 }
52}
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:26 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.