summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml')
-rw-r--r--src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
index 043d9ba2..73c9481c 100644
--- a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
+++ b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
@@ -33,9 +33,15 @@ import "../controls"
Rectangle {
id: root
-
color: _backgroundColor
+ Connections {
+ target: _parentView.projectModel
+ onSelectFileChanged: {
+ projectTree.currentIndex = idx; // auto select a newly created file
+ }
+ }
+
ColumnLayout {
anchors.fill: parent
spacing: 4