Kstars

TutorialExitPopup.qml
1 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
2 // SPDX-License-Identifier: GPL-2.0-or-later
3 
4 import QtQuick 2.7
5 
6 import QtQuick.Controls 2.0
7 import QtQuick.Controls.Material 2.0
8 import QtQuick.Controls.Universal 2.0
9 
10 import QtQuick.Window 2.2 as Window
11 import QtQuick.Layouts 1.1
12 
13 Popup {
14  id: tutorialExit
15  focus: true
16  modal: true
17 
18  ColumnLayout {
19  id: studyCol
20  width: parent.width
21  height: childrenRect.height
22 
23  Text {
24  width: parent.width
25  wrapMode: Text.Wrap
26  horizontalAlignment: Text.AlignHCenter
27  text: xi18n("Are you sure you want to exit tutorial?")
28  }
29 
30  RowLayout {
31  anchors.horizontalCenter: parent.horizontalCenter
32 
33  Button {
34  text: xi18n("Cancel")
35  onClicked: close()
36  }
37 
38  Button {
39  text: xi18n("Yes")
40  onClicked: {
41  exitTutorial()
42  close()
43  }
44  }
45  }
46  }
47 }
QString xi18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:00:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.