diff --git a/src/config.qml b/src/config.qml index 3d8711f7f87f7f810ded08ba6541723093c1ff1b..c6ee13c299803d89001c5c818f7c6fb744764c86 100644 --- a/src/config.qml +++ b/src/config.qml @@ -10,7 +10,7 @@ import QtQuick.Layouts import QtQuick.Dialogs import org.julialang -ApplicationWindow { +Window { id: configWindow title: "Configure simulation" width: 700 @@ -222,7 +222,7 @@ ApplicationWindow { // insectmodel } - footer: ToolBar { + ToolBar { RowLayout { anchors.right: parent.right layoutDirection: Qt.RightToLeft diff --git a/src/main.qml b/src/main.qml index c047a52b7f82a8152117df082a5f6e28a0216d22..eca6820ed29acd3b4859d6facc0b54d4358922a9 100644 --- a/src/main.qml +++ b/src/main.qml @@ -17,6 +17,10 @@ ApplicationWindow { visibility: "Maximized" visible: true + Loader { + id: loader + } + menuBar: MenuBar { Menu { title: "&Simulation" @@ -26,7 +30,8 @@ ApplicationWindow { } Action { text: "&Configure Simulation" - onTriggered: { Julia.configwindow() } + //onTriggered: { Julia.configwindow() } + onTriggered: loader.source = "config.qml" } Action { text: "&Load Saved State"