Review Request 114152: [GCI] FixPicturestrip navigation loop

Sinny Kumari ksinny at gmail.com
Wed Nov 27 15:25:14 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/114152/#review44583
-----------------------------------------------------------


Thank you for patch!
Please make changes as Sebastian suggested :)

Other than that, there is one issue with this patch. This patch works fine in case of All pictures, Flickr and Picasa backend but it maynot work as expected in case of Browse Pictures. Consider the case when there are 2 directories and 4 pictures in current media browser. In Picturestrip, list of directories (with width and height 0) will be also there along with pictures. Now, when you are currently viewing first picture and then you click previous image button, then instead of going to last image it will go to previous item which will be a directory. So, in imageviewer you won't see blank screen.

To solve this case, As you see that all directories come first and then files. So, what you will have to do is, check if current item is a directory or file. If it is a directory just ignore them and move to next/previous item.

Hint:
isExpandable role will tell you that whether current item is a directory or not.
You will have to create a property inside listview delegate to access them outside listview, property in QML is declared as
property bool isDirectory: isExpandable

and to access isDirectory property outside listview, use
imageList.currentItem.isDirectory


mediaelements/imageviewer/PictureStrip.qml
<http://git.reviewboard.kde.org/r/114152/#comment31827>

    index of Listview starts from 0 to (total count -1), so while assigning value of count make it imageList.count - 1


- Sinny Kumari


On Nov. 27, 2013, 3:01 p.m., Egor Matirov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/114152/
> -----------------------------------------------------------
> 
> (Updated Nov. 27, 2013, 3:01 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-mediacenter
> 
> 
> Description
> -------
> 
> Currently, when you have selected first image from picture strip and clicks previous image button then nothing happen. Same way, when user reaches to the last image and clicks next image button, then nothing happens.
> This patch fix it. GCI task: http://www.google-melange.com/gci/task/view/google/gci2013/5783943471169536
> 
> 
> Diffs
> -----
> 
>   mediaelements/imageviewer/PictureStrip.qml 4825f2e 
> 
> Diff: http://git.reviewboard.kde.org/r/114152/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Egor Matirov
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20131127/493bd458/attachment.html>


More information about the Plasma-devel mailing list