[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request: Folderview : label when empty folder
From: Fredrik_Höglund <fredrik () kde ! org>
Date: 2010-07-08 20:07:37
Message-ID: 20100708200737.21048.96980 () localhost
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4519/#review6434
-----------------------------------------------------------
I wouldn't worry about the size just now, it can be done in a separate commit. I \
actually have a patch that adjusts the size based on the number of items, but I \
couldn't decide if I liked it or not.
I think showing the information icon next to the text might be a bit too much though.
/trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp
<http://reviewboard.kde.org/r/4519/#comment6166>
Does it still work if this is changed to
if (m_model->rowCount() == 0 && !listingInProgress())?
It would simplify the rest of the code a bit if it does.
It should probably also be 'else if', so two messages aren't overlaid.
- Fredrik
On 2010-07-08 19:22:01, Iamluc wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/4519/
> -----------------------------------------------------------
>
> (Updated 2010-07-08 19:22:01)
>
>
> Review request for Plasma.
>
>
> Summary
> -------
>
> Hello,
>
> This patch add a Plasma::Label with text "This folder is empty." in Folderview's \
> Popup when the folder is empty.
> The related bug number in kde bugzilla is 201542.
>
> Luc
>
>
> This addresses bug 201542.
> https://bugs.kde.org/show_bug.cgi?id=201542
>
>
> Diffs
> -----
>
> /trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.h 1145373
> /trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp 1145373
>
> Diff: http://reviewboard.kde.org/r/4519/diff
>
>
> Testing
> -------
>
> Delete/add files several times. The label disappears/appears correctly.
>
>
> Screenshots
> -----------
>
> folderview empty folder
> http://reviewboard.kde.org/r/4519/s/444/
> version 2
> http://reviewboard.kde.org/r/4519/s/455/
>
>
> Thanks,
>
> Iamluc
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://reviewboard.kde.org/r/4519/">http://reviewboard.kde.org/r/4519/</a>
</td>
</tr>
</table>
<br />
<pre>I wouldn't worry about the size just now, it can be done in a separate \
commit. I actually have a patch that adjusts the size based on the number of items, \
but I couldn't decide if I liked it or not.
I think showing the information icon next to the text might be a bit too much \
though.</pre> <br />
<div>
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="/r/4519/diff/2/?file=30580#file30580line1246" style="color: black; font-weight: \
bold; text-decoration: \
underline;">/trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp</a> <span \
style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
white-space: pre-wrap; word-wrap: break-word;">void IconView::paint(QPainter \
*painter, const QStyleOptionGraphicsItem *option, QWidget *widget)</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; white-space: pre-wrap; \
word-wrap: break-word;"></pre></td> <th bgcolor="#b1ebb0" style="border-left: 1px \
solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font \
size="2">1243</font></th> <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: \
8pt; line-height: 140%; margin: 0; white-space: pre-wrap; word-wrap: break-word;"> \
<span class="k">if</span> <span class="p">(</span><span \
class="n">m_folderIsEmpty</span><span class="p">)</span> <span \
class="p">{</span></pre></td> </tr>
</tbody>
</table>
<pre style="margin-left: 2em">Does it still work if this is changed to
if (m_model->rowCount() == 0 && !listingInProgress())?
It would simplify the rest of the code a bit if it does.
It should probably also be 'else if', so two messages aren't overlaid.
</pre>
</div>
<br />
<p>- Fredrik</p>
<br />
<p>On July 8th, 2010, 7:22 p.m., Iamluc wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Plasma.</div>
<div>By Iamluc.</div>
<p style="color: grey;"><i>Updated 2010-07-08 19:22:01</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0;">Hello,
This patch add a Plasma::Label with text "This folder is empty." in \
Folderview's Popup when the folder is empty.
The related bug number in kde bugzilla is 201542.
Luc</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0;">Delete/add files several times. The label \
disappears/appears correctly.</pre> </td>
</tr>
</table>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>
<a href="https://bugs.kde.org/show_bug.cgi?id=201542">201542</a>
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>/trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.h <span style="color: \
grey">(1145373)</span></li>
<li>/trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp <span \
style="color: grey">(1145373)</span></li>
</ul>
<p><a href="http://reviewboard.kde.org/r/4519/diff/" style="margin-left: 3em;">View \
Diff</a></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>
<div>
<a href="http://reviewboard.kde.org/r/4519/s/444/"><img \
src="http://reviewboard.kde.org/media/uploaded/images/2010/07/03/folderview_400x100.png" \
style="border: 1px black solid;" alt="folderview empty folder" /></a>
<a href="http://reviewboard.kde.org/r/4519/s/455/"><img \
src="http://reviewboard.kde.org/media/uploaded/images/2010/07/08/folderview2_400x100.png" \
style="border: 1px black solid;" alt="version 2" /></a>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic