blob: 966355e92398c43c709adb3e6c0004da67e65567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs
CustomDialog {
id: root
// Which action user is trying to do when this dialog gets shown
// 0: New Project
// 1: Open Project
// 2: Close Project
// 3: Close Application
property int action: -1
// File user is trying to open when this dialog gets shown
property string openFileName: ""
title: qsTr("Save Project Changes")
width: 320
height: 200
modal: true
focus: true
standardButtons: Dialog.Save | Dialog.Discard | Dialog.Cancel
closePolicy: Popup.NoAutoClose
Text {
width: parent.width
text: "Project '" + effectManager.projectName + "' contains unsaved changes."
font.pixelSize: 14
color: mainView.foregroundColor2
wrapMode: Text.WordWrap
}
}
|