summaryrefslogtreecommitdiffstats
path: root/demos/declarative/calculator/calculator.qml
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-09-01 05:00:54 (GMT)
committerLorn Potter <lorn.potter@nokia.com>2010-09-01 05:00:54 (GMT)
commit036d7afd42ce3ca9736e173a72bc5228a1eb211d (patch)
treebbeefb4384b393e860350a8a6142fa7d27141644 /demos/declarative/calculator/calculator.qml
parent87bc302810b97bd647187e5e31f5276ae729dce0 (diff)
parent31e4efaf2178b81552e875eb5a1d5a894310e561 (diff)
downloadQt-036d7afd42ce3ca9736e173a72bc5228a1eb211d.zip
Qt-036d7afd42ce3ca9736e173a72bc5228a1eb211d.tar.gz
Qt-036d7afd42ce3ca9736e173a72bc5228a1eb211d.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'demos/declarative/calculator/calculator.qml')
-rw-r--r--demos/declarative/calculator/calculator.qml16
1 files changed, 7 insertions, 9 deletions
diff --git a/demos/declarative/calculator/calculator.qml b/demos/declarative/calculator/calculator.qml
index 288455b..68c922b 100644
--- a/demos/declarative/calculator/calculator.qml
+++ b/demos/declarative/calculator/calculator.qml
@@ -58,7 +58,7 @@ Rectangle {
property string plusminus : "\u00b1"
function doOp(operation) { CalcEngine.doOperation(operation) }
-
+
Item {
id: main
state: "orientation " + runtime.orientation
@@ -70,8 +70,10 @@ Rectangle {
anchors { fill: parent; topMargin: 6; bottomMargin: 6; leftMargin: 6; rightMargin: 6 }
- Row {
- Display { id: display; width: box.width; height: 64 }
+ Display {
+ id: display
+ width: box.width-3
+ height: 64
}
Column {
@@ -82,11 +84,7 @@ Rectangle {
Row {
spacing: 6
-
- Button {
- id: rotateButton
- width: column.w; height: column.h; color: 'purple'; operation: rotateRight
- }
+ Button { width: column.w; height: column.h; color: 'purple'; operation: "Off" }
Button { width: column.w; height: column.h; color: 'purple'; operation: leftArrow }
Button { width: column.w; height: column.h; color: 'purple'; operation: "C" }
Button { width: column.w; height: column.h; color: 'purple'; operation: "AC" }
@@ -103,7 +101,7 @@ Rectangle {
}
Grid {
- id: grid; rows: 4; columns: 5; spacing: 6
+ id: grid; rows: 5; columns: 5; spacing: 6
property real w: (box.width / columns) - ((spacing * (columns - 1)) / columns)