Merge lp:~saviq/unity8/rating-non-interactive into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Andrea Cimitan
Approved revision: 1011
Merged at revision: 1027
Proposed branch: lp:~saviq/unity8/rating-non-interactive
Merge into: lp:unity8
Diff against target: 34 lines (+14/-0)
2 files modified
qml/Dash/Previews/PreviewRatingDisplay.qml (+1/-0)
tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml (+13/-0)
To merge this branch: bzr merge lp:~saviq/unity8/rating-non-interactive
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Andrea Cimitan (community) Approve
Review via email: mp+225568@code.launchpad.net

Commit message

Make rating stars in PreviewReviewDisplay.qml non-interactive.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No.

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.

 * Did you make sure that your branch does not contain spurious tags?
Yes.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

inline

review: Needs Fixing
Revision history for this message
Andrea Cimitan (cimi) :
1011. By Michał Sawicz

Just tap in 0,0.

Revision history for this message
Andrea Cimitan (cimi) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
 * Did CI run pass? If not, please explain why.
Yes

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Had to abort, job was stuck for a day...

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/Previews/PreviewRatingDisplay.qml'
2--- qml/Dash/Previews/PreviewRatingDisplay.qml 2014-04-08 17:09:35 +0000
3+++ qml/Dash/Previews/PreviewRatingDisplay.qml 2014-07-04 07:42:13 +0000
4@@ -61,6 +61,7 @@
5 size: 5
6 value: modelData["rating"] || -1
7 visible: value >= 0
8+ interactive: false
9
10 property var urlIconEmpty: widgetData["rating-icon-empty"]
11 property var urlIconFull: widgetData["rating-icon-full"]
12
13=== modified file 'tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml'
14--- tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml 2014-02-21 11:04:21 +0000
15+++ tests/qmltests/Dash/Previews/tst_PreviewRatingDisplay.qml 2014-07-04 07:42:13 +0000
16@@ -108,5 +108,18 @@
17 }
18 }
19 }
20+
21+ function test_non_interactive() {
22+ previewRatingDisplay.widgetData = reviewsModel1;
23+
24+ var reviewItem = findChild(previewRatingDisplay, "reviewItem1");
25+ var rating = findChild(reviewItem, "rating");
26+
27+ compare(rating.value, reviewsModel1["reviews"][1]["rating"]);
28+
29+ // Tap on first star
30+ mouseClick(rating, 0, 0);
31+ compare(rating.value, reviewsModel1["reviews"][1]["rating"]);
32+ }
33 }
34 }

Subscribers

People subscribed via source and target branches