[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request 122332: KQuickControls IconDialog
From: "David Edmundson" <david () davidedmundson ! co ! uk>
Date: 2015-03-22 21:19:29
Message-ID: 20150322211929.548.36328 () mimi ! kde ! org
[Download RAW message or body]
--===============3912698836937225039==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122332/#review77930
-----------------------------------------------------------
In general +100. Two minor comments.
src/qmlcontrols/kquickcontrolsaddons/icondialog.h (line 61)
<https://git.reviewboard.kde.org/r/122332/#comment53433>
I don't see this being set to false when the window is closed.
src/qmlcontrols/kquickcontrolsaddons/icondialog.cpp (line 156)
<https://git.reviewboard.kde.org/r/122332/#comment53432>
kicondialog has a weird showDialog method, that does some extra focus things. You \
should use that
(and/or we should fix kicondialog to not be weird)
- David Edmundson
On March 14, 2015, 9:41 a.m., Kai Uwe Broulik wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122332/
> -----------------------------------------------------------
>
> (Updated March 14, 2015, 9:41 a.m.)
>
>
> Review request for Plasma and Daniel Vrátil.
>
>
> Repository: kdeclarative
>
>
> Description
> -------
>
> This patch adds KQuickControls wrapper around KIconDialog similar to how the \
> ColorDialog and other QtQuick Dialogs work. This can be used, for instance, in \
> Kickoff's config UI to provide a picker for a custom item.
> It is an initial draft and lacks for example window modality as I couldn't figure \
> out how QtQuick Dialogs do that (some PlatformDialogHelper magic inside) and I'm \
> also not sure about the lifecycle/ownership of the dialog, I've seen a lot of fixes \
> for issues in that area on Review Board.
>
> Diffs
> -----
>
> src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt d5713a0
> src/qmlcontrols/kquickcontrolsaddons/icondialog.h PRE-CREATION
> src/qmlcontrols/kquickcontrolsaddons/icondialog.cpp PRE-CREATION
> src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp cee2360
>
> Diff: https://git.reviewboard.kde.org/r/122332/diff/
>
>
> Testing
> -------
>
> For testing I added a button to Kickoff that allows to open the dialog and the \
> button icon source is bound to the dialog's iconName property. Didn't test the icon \
> source/user/custom path stuff.
>
> Thanks,
>
> Kai Uwe Broulik
>
>
--===============3912698836937225039==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/122332/">https://git.reviewboard.kde.org/r/122332/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">In \
general +100. Two minor comments.</p></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="https://git.reviewboard.kde.org/r/122332/diff/4/?file=354889#file354889line61" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/qmlcontrols/kquickcontrolsaddons/icondialog.h</a> <span \
style="font-weight: normal;">
(Diff revision 4)
</span>
</th>
</tr>
</thead>
<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; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">61</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="n">Q_PROPERTY</span><span class="p">(</span><span class="kt">bool</span> <span \
class="n">visible</span> <span class="n">READ</span> <span class="n">visible</span> \
<span class="n">WRITE</span> <span class="n">setVisible</span> <span \
class="n">NOTIFY</span> <span class="n">visibleChanged</span><span \
class="p">)</span></pre></td> </tr>
</tbody>
</table>
<div style="margin-left: 2em;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I \
don't see this being set to false when the window is closed.</p></pre> </div>
</div>
<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="https://git.reviewboard.kde.org/r/122332/diff/4/?file=354890#file354890line156" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/qmlcontrols/kquickcontrolsaddons/icondialog.cpp</a> <span \
style="font-weight: normal;">
(Diff revision 4)
</span>
</th>
</tr>
</thead>
<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; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">156</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="n">m_dialog</span><span class="o">-></span><span class="n">show</span><span \
class="p">();</span></pre></td> </tr>
</tbody>
</table>
<div style="margin-left: 2em;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">kicondialog has a weird showDialog method, that does some extra focus \
things. You should use that</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">(and/or we should fix kicondialog to \
not be weird)</p></pre> </div>
</div>
<br />
<p>- David Edmundson</p>
<br />
<p>On March 14th, 2015, 9:41 a.m. UTC, Kai Uwe Broulik wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for Plasma and Daniel Vrátil.</div>
<div>By Kai Uwe Broulik.</div>
<p style="color: grey;"><i>Updated March 14, 2015, 9:41 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
kdeclarative
</div>
<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; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">This patch adds KQuickControls wrapper around \
KIconDialog similar to how the ColorDialog and other QtQuick Dialogs work. This can \
be used, for instance, in Kickoff's config UI to provide a picker for a custom \
item.</p> <p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">It is an initial draft and lacks for example window \
modality as I couldn't figure out how QtQuick Dialogs do that (some \
PlatformDialogHelper magic inside) and I'm also not sure about the \
lifecycle/ownership of the dialog, I've seen a lot of fixes for issues in that area \
on Review Board.</p></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; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">For testing I added a button to Kickoff that allows to \
open the dialog and the button icon source is bound to the dialog's iconName \
property. Didn't test the icon source/user/custom path stuff.</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/qmlcontrols/kquickcontrolsaddons/CMakeLists.txt <span style="color: \
grey">(d5713a0)</span></li>
<li>src/qmlcontrols/kquickcontrolsaddons/icondialog.h <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>src/qmlcontrols/kquickcontrolsaddons/icondialog.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>src/qmlcontrols/kquickcontrolsaddons/kquickcontrolsaddonsplugin.cpp <span \
style="color: grey">(cee2360)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/122332/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============3912698836937225039==--
[Attachment #3 (text/plain)]
_______________________________________________
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