Update the Calqltr demo visuals and engine logic
authorTopi Reinio <topi.reinio@digia.com>
Wed, 24 Sep 2014 12:37:46 +0000 (14:37 +0200)
committerTopi Reiniö <topi.reinio@digia.com>
Tue, 30 Sep 2014 10:37:28 +0000 (12:37 +0200)
commitf83d12e0c27ad76d98d66a663140a09698b11d37
tree6ce1e66cd651c8b325f5a6790ea036e7bbe62c47
parentfccf0e29120f64a8b9b2a15b33971a648ab190e7
Update the Calqltr demo visuals and engine logic

    - Add logic for displaying the calculation result in the best
      available precision, determined by the display width
    - Display 'ERROR' when the result cannot be displayed
    - Animate the number pad button colors to react to presses and
      visually disable them when pressing the button has no effect
    - Fix issues in calculator.js logic
    - Update documentation accordingly

Task-number: QTBUG-41253
Change-Id: Ibed7b8218ea4cd074b8f9b90d9bb4e3ea6b25ba2
Reviewed-by: Johanna Äijälä <johanna.aijala@digia.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
examples/quick/demos/calqlatr/calqlatr.qml
examples/quick/demos/calqlatr/content/Button.qml
examples/quick/demos/calqlatr/content/Display.qml
examples/quick/demos/calqlatr/content/NumberPad.qml
examples/quick/demos/calqlatr/content/calculator.js
examples/quick/demos/calqlatr/doc/src/calqlatr.qdoc