Merge lp:~nik90/ubuntu-clock-app/universal-clockmarker into lp:ubuntu-clock-app/saucy
Proposed by
Nekhelesh Ramananthan
Status: | Merged |
---|---|
Approved by: | Juha Ristolainen |
Approved revision: | 20 |
Merged at revision: | 18 |
Proposed branch: | lp:~nik90/ubuntu-clock-app/universal-clockmarker |
Merge into: | lp:ubuntu-clock-app/saucy |
Diff against target: |
91 lines (+12/-30) 4 files modified
common/AnalogClockMarker.qml (+8/-5) common/Constants.js (+1/-0) stopwatch/AnalogStopwatchMarker.qml (+0/-24) stopwatch/StopwatchPage.qml (+3/-1) |
To merge this branch: | bzr merge lp:~nik90/ubuntu-clock-app/universal-clockmarker |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Marco Biscaro (community) | Needs Fixing | ||
Ubuntu Clock Developers | Pending | ||
Review via email: mp+154199@code.launchpad.net |
Commit message
Refactored AnalogClockMarker to be more universal
Description of the change
The AnalogClockMarker is something we need to use in Timer, Clock, Alarm and also Stopwatch. Hence made that more universal. Also refactored the Stopwatch clock marker to use the common one instead of it own marker implementation.
To post a comment you must log in.
12 + property real radDistance: 0.45 normalGrey
13 + property string radColor: Constants.
14 + property real radSize: 1
Why all properties have the "rad" prefix? I've only used radAngle to make clear this value is in radians (not in degrees), but I think the other properties don't need this prefix.
Also, no need to declare a new color property. You can just do:
color: Constants. normalGrey