Sorry for the late reply.. i think i&#39;ll remove this patch from reviewboard.. Anyway i&#39;d like to know a method to put the action at a specified corner since youu suggested me to put the action of the devicenotifier refactoring at the topright corner instead of the top left one.. Since trying to pass an ampty action doesn&#39;t work i thought this patch would have been fine, but didn&#39;t think about what you have just noriced :). So pleas, suggest me a way or a workaround to put the action at the corner i choose..<br>
<br><div class="gmail_quote">2009/2/23 Aaron Seigo <span dir="ltr">&lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
-----------------------------------------------------------<br>
This is an automatically generated e-mail. To reply, visit:<br>
</div><a href="http://reviewboard.kde.org/r/14/#review245" target="_blank">http://reviewboard.kde.org/r/14/#review245</a><br>
-----------------------------------------------------------<br>
<br>
<br>
so the reason i didn&#39;t expose the corner enum was so that we weren&#39;t stuck showing the icon in a specific location (e.g. the corner) of the icon. what if we wanted to show it in a circle around the icon, for instance? or on an overlay when you hover the icon (probably based on the form factor and size of the widget)? by exposing &quot;this is the corner it will be in&quot;, we either lock ourselves into a single representation or set ourselves up for an API that doesn&#39;t really do what you tell it to but does &quot;something else&quot; with your input.<br>

<br>
so ... what exactly is the use case you are after here? i know you said something about the device notifier, but what&#39;s the exact end result you are going for?<br>
<div class="Ih2E3d"><br>
<br>
trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp<br>
</div>&lt;<a href="http://reviewboard.kde.org/r/14/#comment137" target="_blank">http://reviewboard.kde.org/r/14/#comment137</a>&gt;<br>
<br>
    if there is a public enum, then IconWidgetPrivate::ActionPosition should simply be removed and IconwWidget::ActionCorner be used.<br>
<div class="Ih2E3d"><br>
<br>
<br>
trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp<br>
</div>&lt;<a href="http://reviewboard.kde.org/r/14/#comment138" target="_blank">http://reviewboard.kde.org/r/14/#comment138</a>&gt;<br>
<br>
    this foreach really ought to be re-written to use a QMutableMapIterator; rather more efficient than what this is.<br>
<div class="Ih2E3d"><br>
<br>
<br>
trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp<br>
</div>&lt;<a href="http://reviewboard.kde.org/r/14/#comment140" target="_blank">http://reviewboard.kde.org/r/14/#comment140</a>&gt;<br>
<br>
    should be changed to use a QMapIterator<br>
<br>
<br>
- Aaron<br>
<div class="Ih2E3d"><br>
<br>
On 2009-02-04 10:26:49, Alessandro Diaferia wrote:<br>
&gt;<br>
&gt; -----------------------------------------------------------<br>
&gt; This is an automatically generated e-mail. To reply, visit:<br>
&gt; <a href="http://reviewboard.kde.org/r/14/" target="_blank">http://reviewboard.kde.org/r/14/</a><br>
&gt; -----------------------------------------------------------<br>
&gt;<br>
</div>&gt; (Updated 2009-02-04 10:26:49)<br>
<div class="Ih2E3d">&gt;<br>
&gt;<br>
&gt; Review request for Plasma, Aaron Seigo and Marco Martin.<br>
&gt;<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; Summary<br>
&gt; -------<br>
&gt;<br>
&gt; This patch adds the chance to specify in which corner the action will be placed. Useful for me in the devicenotifier refactor. In addition to this i&#39;ve fixed the fact that the action is painted on the *widget*&#39;s corner and not on the *icon*&#39;s corner. To achieve this i used a workaround, but i don&#39;t like it much even if it correctly does the trick.<br>

&gt;<br>
&gt; I hope that everything is still BC.<br>
&gt;<br>
&gt; Lemme know what you think about this.<br>
&gt;<br>
&gt; Cheers :)<br>
&gt;<br>
&gt;<br>
&gt; Diffs<br>
</div><div><div></div><div class="Wj3C7c">&gt; -----<br>
&gt;<br>
&gt;   trunk/KDE/kdelibs/plasma/widgets/iconwidget.h 920669<br>
&gt;   trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp 920669<br>
&gt;   trunk/KDE/kdelibs/plasma/widgets/iconwidget_p.h 920669<br>
&gt;<br>
&gt; Diff: <a href="http://reviewboard.kde.org/r/14/diff" target="_blank">http://reviewboard.kde.org/r/14/diff</a><br>
&gt;<br>
&gt;<br>
&gt; Testing<br>
&gt; -------<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alessandro<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alessandro Diaferia<br>KDE Developer<br>