Kstars

TutorialExitPopup.qml
1// SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4import QtQuick 2.7
5
6import QtQuick.Controls 2.0
7import QtQuick.Controls.Material 2.0
8import QtQuick.Controls.Universal 2.0
9
10import QtQuick.Window 2.2 as Window
11import QtQuick.Layouts 1.1
12
13Popup {
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-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.