Merge lp:~artmello/gallery-app/gallery-app-overlay_video_icon into lp:gallery-app

Proposed by Arthur Mello
Status: Rejected
Rejected by: Bill Filler
Proposed branch: lp:~artmello/gallery-app/gallery-app-overlay_video_icon
Merge into: lp:gallery-app
Diff against target: 66 lines (+22/-0)
3 files modified
rc/qml/AlbumViewer/AlbumInternals/FramePortrait.qml (+7/-0)
rc/qml/Components/MediaGrid.qml (+8/-0)
rc/qml/OrganicView/OrganicMediaList.qml (+7/-0)
To merge this branch: bzr merge lp:~artmello/gallery-app/gallery-app-overlay_video_icon
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+209064@code.launchpad.net

Commit message

Add play icon if thumbnail is from video

Description of the change

Add play icon if thumbnail is from video

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

Remove hardcoded MediaSource type

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Arthur Mello (artmello) wrote :

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

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/gallery-app) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
Yes

If you changed the packaging (debian), did you subscribe a core-dev to this MP?
No packaging change

Revision history for this message
Bill Filler (bfiller) wrote :

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'rc/qml/AlbumViewer/AlbumInternals/FramePortrait.qml'
2--- rc/qml/AlbumViewer/AlbumInternals/FramePortrait.qml 2013-04-08 14:55:34 +0000
3+++ rc/qml/AlbumViewer/AlbumInternals/FramePortrait.qml 2014-03-03 15:49:30 +0000
4@@ -18,6 +18,7 @@
5 */
6
7 import QtQuick 2.0
8+import Gallery 1.0
9 import "../../../js/Gallery.js" as Gallery
10
11 /*!
12@@ -62,4 +63,10 @@
13 NumberAnimation { duration: Gallery.SNAP_DURATION }
14 }
15 }
16+ Image {
17+ // Display a play icon if the thumbnail is from a video
18+ source: "../../../img/icon_play.png"
19+ anchors.centerIn: parent
20+ visible: isLoaded && mediaSource.type === MediaSource.Video
21+ }
22 }
23
24=== modified file 'rc/qml/Components/MediaGrid.qml'
25--- rc/qml/Components/MediaGrid.qml 2013-06-26 08:59:08 +0000
26+++ rc/qml/Components/MediaGrid.qml 2014-03-03 15:49:30 +0000
27@@ -16,6 +16,7 @@
28
29 import QtQuick 2.0
30 import Ubuntu.Components 0.1
31+import Gallery 1.0
32 import "../OrganicView"
33 import "../Utility"
34 import "../../js/Gallery.js" as Gallery
35@@ -84,6 +85,13 @@
36 asynchronous: true
37 }
38
39+ Image {
40+ // Display a play icon if the thumbnail is from a video
41+ source: "../../img/icon_play.png"
42+ anchors.centerIn: parent
43+ visible: mediaSource.type === MediaSource.Video
44+ }
45+
46 OrganicItemInteraction {
47 objectName: "photosViewPhoto"
48 selectionItem: model.mediaSource
49
50=== modified file 'rc/qml/OrganicView/OrganicMediaList.qml'
51--- rc/qml/OrganicView/OrganicMediaList.qml 2013-06-26 13:46:56 +0000
52+++ rc/qml/OrganicView/OrganicMediaList.qml 2014-03-03 15:49:30 +0000
53@@ -165,6 +165,13 @@
54 asynchronous: true
55 }
56
57+ Image {
58+ // Display a play icon if the thumbnail is from a video
59+ source: "../../img/icon_play.png"
60+ anchors.centerIn: parent
61+ visible: mediaSource.type === MediaSource.Video
62+ }
63+
64 OrganicItemInteraction {
65 objectName: "eventsViewPhoto"
66 selectionItem: model.mediaSource

Subscribers

People subscribed via source and target branches