Commit ee8a964c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't mess around with app.functionsModel() from the dictionary

parent 88a0aa79
......@@ -9,7 +9,7 @@ KAlgebraPage
anchors.margins: 0
function updateGraph() {
app.functionsModel().clear();
view.model.clear();
view.resetViewport();
view.addFunction(operators.data(operators.index(chosebox.currentIndex,3)), app.variables);
}
......@@ -59,7 +59,9 @@ KAlgebraPage
anchors {
fill: parent
}
model: app.functionsModel()
model: PlotsModel {
id: plotsModel
}
Component.onCompleted: {
page.updateGraph();
}
......
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