File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ qt_add_qml_module(${APP_TARGET}
16
16
QML_FILES
17
17
qml/main.qml
18
18
qml/dialogs/AboutDialog.qml
19
+ qml/dialogs/ProjectSettingsDialog.qml
19
20
)
20
21
21
22
set (QML_IMPORT_PATH "${QML_IMPORT_PATH} ;${CMAKE_CURRENT_LIST_DIR} "
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: GPL-3.0-or-later
2
+
3
+ import QtQuick
4
+ import QtQuick.Controls
5
+ import QtQuick.Layouts
6
+ import ScratchCPP.UiComponents
7
+ import ScratchCPP.Render
8
+
9
+ CustomDialog {
10
+ property ProjectPlayer projectPlayer: null
11
+ title: qsTr (" Project settings" )
12
+ standardButtons: Dialog .Close
13
+
14
+ contentItem: RowLayout {}
15
+ }
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ ApplicationWindow {
33
33
player .fileName = fileName;
34
34
}
35
35
36
+ function onProjectSettingsTriggered () {
37
+ projectSettingsDialog .open ();
38
+ }
39
+
36
40
function onAboutAppTriggered () {
37
41
aboutDialog .open ();
38
42
}
@@ -41,6 +45,11 @@ ApplicationWindow {
41
45
42
46
AboutDialog { id: aboutDialog }
43
47
48
+ ProjectSettingsDialog {
49
+ id: projectSettingsDialog
50
+ projectPlayer: player
51
+ }
52
+
44
53
ColumnLayout {
45
54
id: layout
46
55
anchors .fill : parent
You can’t perform that action at this time.
0 commit comments