Merge lp:~rpadovani/ubuntu-calculator-app/1207679 into lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Riccardo Padovani
Status: Merged
Approved by: David Planella
Approved revision: 122
Merged at revision: 126
Proposed branch: lp:~rpadovani/ubuntu-calculator-app/1207679
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 73 lines (+15/-3)
2 files modified
Simple/CalcLabel.qml (+9/-3)
Simple/Screen.qml (+6/-0)
To merge this branch: bzr merge lp:~rpadovani/ubuntu-calculator-app/1207679
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Mihir Soni Approve
Review via email: mp+179189@code.launchpad.net

Commit message

Fixed #1207679 "Pencils appear before calculations are made"

Description of the change

Fixed #1207679 "Pencils appear before calculations are made"

To post a comment you must log in.
120. By Riccardo Padovani

Resolved conflict

121. By Riccardo Padovani

Fixed typo

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Hi ,

I am unable to add comment In operands

Try following scenario :-

1. Try any new calculation
2. I am unable to write on any operand.

review: Needs Fixing
122. By Riccardo Padovani

Fix a bug

Revision history for this message
Mihir Soni (mihirsoni) wrote :

Looks good :) Thank you

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Works well here now, nice work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Simple/CalcLabel.qml'
2--- Simple/CalcLabel.qml 2013-08-07 19:48:44 +0000
3+++ Simple/CalcLabel.qml 2013-08-08 14:10:49 +0000
4@@ -54,13 +54,16 @@
5 Image {
6 anchors.verticalCenter: parent.verticalCenter
7 source: Qt.resolvedUrl("images/edit.png")
8+ visible: root.numbers || root.operation
9 }
10
11 MouseArea {
12 anchors.fill: parent
13 onClicked: {
14- numberName.focus = true;
15- numberName.forceActiveFocus();
16+ if (root.numbers || root.operation) {
17+ numberName.focus = true;
18+ numberName.forceActiveFocus();
19+ }
20 }
21 }
22 }
23@@ -78,15 +81,18 @@
24 background: Item {}
25 }
26
27+ visible: root.numbers || root.operation
28+
29 readOnly: labelReadOnly
30 text: labelText
31 color: "#FEFEFE"
32 onTextChanged: { labelText = numberName.text }
33 hasClearButton: false
34+
35 }
36
37 Image {
38- visible: numberName.focus
39+ visible: numberName.focus && (root.numbers || root.operation)
40 anchors.bottom: parent.bottom
41 source: Qt.resolvedUrl("images/dot.png")
42 fillMode: Image.Tile
43
44=== modified file 'Simple/Screen.qml'
45--- Simple/Screen.qml 2013-08-07 19:48:44 +0000
46+++ Simple/Screen.qml 2013-08-08 14:10:49 +0000
47@@ -29,6 +29,7 @@
48 transformOrigin: Item.Bottom
49
50 property var ops
51+ property var pencilVisible: false
52 signal useAnswer(string answerToUse, string formulaData)
53 signal labelTextUpdated(int idx, string newText)
54 signal mainLabelUpdated(int idx, string newText)
55@@ -169,6 +170,7 @@
56 id: row
57 height: units.gu(4)
58 width: parent.width
59+ visible: !isLastItem || pencilVisible
60 Item {
61 id: editIcon
62 height: parent.height
63@@ -245,6 +247,10 @@
64 onLabelTextChanged: {
65 root.labelTextUpdated(index, labelText)
66 }
67+
68+ onNumbersChanged: {
69+ pencilVisible = true
70+ }
71 }
72 }
73 }

Subscribers

People subscribed via source and target branches