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

Proposed by Riccardo Padovani
Status: Merged
Approved by: Riccardo Padovani
Approved revision: 149
Merged at revision: 148
Proposed branch: lp:~rpadovani/ubuntu-calculator-app/4Sep2013
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 26 lines (+3/-2)
2 files modified
Simple/CalcLabel.qml (+2/-1)
Simple/Screen.qml (+1/-1)
To merge this branch: bzr merge lp:~rpadovani/ubuntu-calculator-app/4Sep2013
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Review via email: mp+183906@code.launchpad.net

Commit message

Update the function to fix bug 1219704

Description of the change

After commit 147[1] when you click on a sign to add a new number, in the calcLabel appears number 0.
This commit fix it without regression about bug 1219704

Pencil icon in now hidden when there are no calc

[1]https://bazaar.launchpad.net/~ubuntu-calculator-dev/ubuntu-calculator-app/trunk/revision/147

To post a comment you must log in.
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
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

I pressed 8 then C and still have one pencil icon. See screenshot.

http://popey.com/~alan/device-2013-09-04-172701.png

review: Needs Fixing
149. By Riccardo Padovani

Pencil icon in now hidden when there are no calc

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Works great! Thanks!

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
Mihir Soni (mihirsoni) wrote :

Looks good.
Thank you

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-09-03 08:20:41 +0000
3+++ Simple/CalcLabel.qml 2013-09-04 16:38:23 +0000
4@@ -138,7 +138,8 @@
5 font.pixelSize: numbersHeight
6 fontSizeMode: Text.Fit
7 horizontalAlignment: Text.AlignRight
8- text: ((isLast && !newCalculation) || root.numbers === "") ? "0" : root.numbers // print 0 if it is a new calculation else the existing number.
9+ // If is a new calculation or if last calculation as been deleted print 0, else the number
10+ text: ((isLast && !newCalculation) || (root.numbers === "" && formulaView.headerItem.state !== "newPush")) ? "0" : root.numbers
11 font.family: "Ubuntu"
12 }
13 }
14
15=== modified file 'Simple/Screen.qml'
16--- Simple/Screen.qml 2013-09-03 08:20:41 +0000
17+++ Simple/Screen.qml 2013-09-04 16:38:23 +0000
18@@ -170,7 +170,7 @@
19 id: row
20 height: units.gu(4)
21 width: parent.width
22- visible: !isLastItem || newCalculation
23+ visible: !isLastItem || newCalculation && formulaView.headerItem.state !== ""
24 Item {
25 id: editIcon
26 height: parent.height

Subscribers

People subscribed via source and target branches