aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/demos/calqlatr/content/Display.qml
diff options
context:
space:
mode:
authorJohanna Aijala <johanna.aijala@digia.com>2014-09-16 15:14:16 +0300
committerTopi Reiniƶ <topi.reinio@digia.com>2014-09-25 10:26:26 +0200
commitda217ce941e1f4bde594cf97221f953b106cb15a (patch)
tree4aede517d3665b8e87685165c721e5b205a3002e /examples/quick/demos/calqlatr/content/Display.qml
parent6641214214213f079176b81e9a98d63cf21bfd3c (diff)
Updated calqlatr demo
Fixes and finetuning of calqlatr demo: - fixed text overlapping, changed max length of a number from 14 to 9 - fixed app "freeze" after entering number of maximum length - implemented +/- operator functionality - fixed listview scrolling, after multiple operations listview was scrolling only when entering '=' leaving the active line hidden when the numbers and operator were typed - added support for entering numbers and certain operators from keyboard - removed commented code Task-number: QTBUG-38818 Change-Id: Ic0ecd2dff68a89007421e95a5bdc3ab7ca2e401d Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/quick/demos/calqlatr/content/Display.qml')
-rw-r--r--examples/quick/demos/calqlatr/content/Display.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/demos/calqlatr/content/Display.qml b/examples/quick/demos/calqlatr/content/Display.qml
index ec8edfea66..97eed1e57e 100644
--- a/examples/quick/demos/calqlatr/content/Display.qml
+++ b/examples/quick/demos/calqlatr/content/Display.qml
@@ -48,6 +48,7 @@ Item {
{
listView.model.append({ "operator": operator, "operand": "" })
enteringDigits = true
+ listView.positionViewAtEnd()
}
function newLine(operator, operand)
@@ -64,6 +65,7 @@ Item {
var i = listView.model.count - 1;
listView.model.get(i).operand = listView.model.get(i).operand + digit;
enteringDigits = true
+ listView.positionViewAtEnd()
}
function clear()