Kstars

LocationLoading.qml
1 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
2 // SPDX-License-Identifier: GPL-2.0-or-later
3 
4 import QtQuick.Controls 2.0
5 import QtQuick 2.7
6 import QtQuick.Layouts 1.1
7 import "../../constants" 1.0
8 import "../../modules"
9 import QtPositioning 5.2
10 
11 Popup {
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 }
const QList< QKeySequence > & close()
QString xi18n(const char *text, const TYPE &arg...)
KJOBWIDGETS_EXPORT QWidget * window(KJob *job)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.