Review Request: Plasmate:images can now be added to projects

Aaron J. Seigo aseigo at kde.org
Thu Aug 11 08:05:58 UTC 2011


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



editors/editpage.cpp
<http://git.reviewboard.kde.org/r/102290/#comment5031>

    it should start wherever the default desktop wide location is, and re-open to the last used directory (if any). you can control where it starts with setUrl



editors/editpage.cpp
<http://git.reviewboard.kde.org/r/102290/#comment5020>

    any: peg, png, svg ...



editors/editpage.cpp
<http://git.reviewboard.kde.org/r/102290/#comment5027>

    no point in newing this; and rightnow it is leaking as it is never deleted.



editors/editpage.cpp
<http://git.reviewboard.kde.org/r/102290/#comment5028>

    foreach ( <-- whitespace :)



packagemodel.cpp
<http://git.reviewboard.kde.org/r/102290/#comment5030>

    i would probably write this as:
    
    if (index.row() == 0) {
        if (qstrcmp(key, "images") {
            return QStringList("[plasmate]/image");
        }
    
        return QStringList("[plasmate]/new");
    }
    
    clearer to understand that the important thing is that it's the first item in the branch (row() == 0) and that different types are returned depending on where in the package we are.


- Aaron J.


On Aug. 10, 2011, 6:29 p.m., Giorgos Tsiapaliwkas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102290/
> -----------------------------------------------------------
> 
> (Updated Aug. 10, 2011, 6:29 p.m.)
> 
> 
> Review request for Plasma and Aaron J. Seigo.
> 
> 
> Summary
> -------
> 
> hello,
> 
> without this patch a user cannot add an image with plasmate.
> 
> reproduce,go to files-images-new,the plasmate will open a text editor instead of a dialog,which(the dialog) is able to open an image.
> 
> With the patch a dialog will open asking for an image.
> 
> 
> Diffs
> -----
> 
>   editors/editpage.h 7b5dca3 
>   editors/editpage.cpp d4b0082 
>   packagemodel.cpp 8c0907a 
> 
> Diff: http://git.reviewboard.kde.org/r/102290/diff
> 
> 
> Testing
> -------
> 
> the patch is not ready yet,i have noted some questions.
> Also the plasmate tries to open the image with a text editor.This have to be fixed,but how?Should we make plasmate able to preview images?
> 
> In addition,when you add something in the list of files(using the different options provided by the files qdockwidget) it names it as "new".This has to be fixed and the plasmate has to show the real name of the file.(different request,i just want an approval for this patch).
> 
> 
> Thanks,
> 
> Giorgos
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20110811/c5623f7f/attachment-0001.html>


More information about the Plasma-devel mailing list