Merge lp:~mihirsoni/ubuntu-calculator-app/RemovedOnclick-1207685 into lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Mihir Soni
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 128
Merged at revision: 131
Proposed branch: lp:~mihirsoni/ubuntu-calculator-app/RemovedOnclick-1207685
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 13 lines (+0/-3)
1 file modified
Simple/CalcLabel.qml (+0/-3)
To merge this branch: bzr merge lp:~mihirsoni/ubuntu-calculator-app/RemovedOnclick-1207685
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
David Planella Needs Fixing
Riccardo Padovani Needs Fixing
Review via email: mp+178526@code.launchpad.net

Commit message

Removed the paste behavior from the all number operands as it is not desired.

Description of the change

Removed the paste behavior from the all number operands as it is not desired.

To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

Thanks for the fix Mihir!

However, this removes the "tapping to get last result" capability altogether. I think the point of the bug was not to remove this feature, but simply stop it from pasting after the first time.

That is:

1. Tap on the previous result
2. Result appears in the current calculation
3. Tap on the previous result
4. Nothing happens, as the result is already on the current calculation

review: Needs Fixing
123. By Mihir Soni

Removed On Clicked from the previous result

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

After last commit needs fixing, there are some bugs:

History works only once:
- Do a calc
- Tear off the calc
- Click on result
- Do another calc and tear off
- Click on new calc
- Nothing happens.

Multiple click:
- Do a calc (e.g 6x7) and tear off
- Click twice on the result (42)
- Result appeare only one time (it's ok)
- Finish the calc, (e.g + 3)
- Expected: 45, but the result is 4245 (like the second click was on queue)

review: Needs Fixing
124. By Mihir Soni

User can only copy the result to the new calculation by tapping on result

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 :

This change is unnecessary and should not be part of the merge proposal, as it only changes indentation:

42 + screenFormula[screenFormula.length - 1]._number += last.value.toString();

After testing the branch I noticed a regression:

1. Start a calculation with 89 + 6 =
2. Without tearing off the calculation, tap on the result.

Actual result:

- The second operand (6) is replaced from the operation by the result (95), and the new result becomes empty

Expected result:

- Nothing happens

review: Needs Fixing
125. By Mihir Soni

Removed copying result from the any of previous result

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (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
Gustavo Pichorim Boiko (boiko) wrote :

28 - isLast: (isLastItem && index === repeater.model.count-1)

This change is probably not correct. The isLast thing is used by some autopilot tests.

review: Needs Fixing
126. By Mihir Soni

Removed copying result from the any of previous result

127. By Mihir Soni

Removed extra spaces

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

Removed extra spaces

Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good and works as expected! Thanks for the fix!

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-08 14:10:35 +0000
3+++ Simple/CalcLabel.qml 2013-08-09 20:36:05 +0000
4@@ -37,9 +37,6 @@
5 MouseArea {
6 anchors.fill: parent
7 propagateComposedEvents: true
8- onClicked: {
9- addFromMemory(root.numbers)
10- }
11 }
12
13 Row{

Subscribers

People subscribed via source and target branches