Warning, /education/kstars/kstars/kstarslite/qml/modules/tutorial/TutorialExitPopup.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick 2.7
0005 
0006 import QtQuick.Controls 2.0
0007 import QtQuick.Controls.Material 2.0
0008 import QtQuick.Controls.Universal 2.0
0009 
0010 import QtQuick.Window 2.2 as Window
0011 import QtQuick.Layouts 1.1
0012 
0013 Popup {
0014     id: tutorialExit
0015     focus: true
0016     modal: true
0017 
0018     ColumnLayout {
0019         id: studyCol
0020         width: parent.width
0021         height: childrenRect.height
0022 
0023         Text {
0024             width: parent.width
0025             wrapMode: Text.Wrap
0026             horizontalAlignment: Text.AlignHCenter
0027             text: xi18n("Are you sure you want to exit tutorial?")
0028         }
0029 
0030         RowLayout {
0031             anchors.horizontalCenter: parent.horizontalCenter
0032 
0033             Button {
0034                 text: xi18n("Cancel")
0035                 onClicked: close()
0036             }
0037 
0038             Button {
0039                 text: xi18n("Yes")
0040                 onClicked: {
0041                     exitTutorial()
0042                     close()
0043                 }
0044             }
0045         }
0046     }
0047 }