Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KAlgebra
Commits
5ca2402a
Commit
5ca2402a
authored
Dec 14, 2020
by
Carl Schwan
🚴
Browse files
Port calculator to ScrollablePage
parent
193f64f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
mobile/content/ui/Console.qml
View file @
5ca2402a
...
...
@@ -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.
Scrollable
Page
{
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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment