Commit 3b58148d authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Automatically move to plot view when clicking plot button in console

This improve the user experience by making it faster to move to the plot
view and it is ihmo that the action that people except to happen when
clicking on those buttons.
parent 00eaeb7a
......@@ -153,6 +153,7 @@ Kirigami.Page {
text: i18n("2D Plot")
onTriggered: {
App.functionsModel().addFunction(expression, 2, App.variables)
show2dPlotAction.trigger();
}
},
Kirigami.Action {
......@@ -160,6 +161,7 @@ Kirigami.Page {
text: i18n("3D Plot")
onTriggered: {
App.functionsModel().addFunction(expression, 4, App.variables)
show3dPlotAction.trigger();
}
}
]
......
......@@ -67,12 +67,14 @@ Kirigami.ApplicationWindow
pagePool: mainPagePool
},
Kirigami.PagePoolAction {
id: show2dPlotAction
icon.name: "draw-bezier-curves"
text: i18n("Graph 2D")
page: "qrc:/Plot2D.qml"
pagePool: mainPagePool
},
Kirigami.PagePoolAction {
id: show3dPlotAction
icon.name: "adjustrgb"
text: i18n("Graph 3D")
page: "qrc:/Plot3D.qml"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment