Commit 5ca2402a authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Port calculator to ScrollablePage

parent 193f64f1
......@@ -25,7 +25,7 @@ import QtQuick.Dialogs 1.0
import org.kde.analitza 1.0
import org.kde.kalgebra.mobile 1.0
Kirigami.Page {
Kirigami.ScrollablePage {
id: page
title: i18n("Calculator")
......@@ -62,29 +62,6 @@ Kirigami.Page {
}
}
Clipboard {
id: clipboard
}
ConsoleModel {
id: consoleModel
variables: App.variables
onMessage: {
itemModel.append({ result: msg, expression: result.toString() })
input.selectAll()
view.currentIndex = view.count-1
view.positionViewAtIndex(view.currentIndex, ListView.Contain)
}
}
FileDialog {
id: fileDialog
folder: shortcuts.home
onAccepted: proceed()
property var proceed
}
contextualActions: [
Kirigami.Action {
text: i18n("Load Script...")
......@@ -166,13 +143,29 @@ Kirigami.Page {
}
]
}
Clipboard {
id: clipboard
}
anchors {
top: parent.top
bottom: input.top
left: parent.left
right: parent.right
ConsoleModel {
id: consoleModel
variables: App.variables
onMessage: {
itemModel.append({ result: msg, expression: result.toString() })
input.selectAll()
view.currentIndex = view.count-1
view.positionViewAtIndex(view.currentIndex, ListView.Contain)
}
}
FileDialog {
id: fileDialog
folder: shortcuts.home
onAccepted: proceed()
property var proceed
}
}
footer: ExpressionInput {
......
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