<br><br><div class="gmail_quote">2009/2/3 Aaron J. 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">On Tuesday 03 February 2009, Alessandro Diaferia wrote:<br>
&gt; I&#39;ve just moved my DeviceNotifier refactoring to kdereview. I feel it is<br>
&gt; much nicer but since i removed tons of code i&#39;d like you to review it and<br>
&gt; tell me if something is wrong.<br>
<br>
</div>some comments/thoughts on the code (besides that Kevin already noted):<br>
<br>
* there&#39;s an m_rootItem in NotifierDialog that isn&#39;t used; looks like a hold-<br>
over from the current DeviceNotifier. ditto with the SpecificRoles enum.</blockquote><div><br>&nbsp;&nbsp; yop, i forgot to remove them :P <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
* NotifierDialog isn&#39;t actually a dialog anymore ;) perhaps a better name<br>
would make it clearer as to what it does. DeviceWidgetManager? looking at it a<br>
bit more, i wonder if NotifierDialog is even needed. all the real<br>
functionality is in the Applet class and DeviceWidget; the &quot;in between&quot; class<br>
could probably be removed as a middle-man and Applet could just use<br>
DeviceWidget directly?</blockquote><div><br>&nbsp; i was thinking about the same.. i feel i&#39;ll remove the NotifierDialog :)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
* if setEjectEmblem is ever called with set == false and m_unmountActions<br>
doesn&#39;t contain an entry for that udi, a crash will occur. a Q_ASSERT should<br>
go in there at a minimum, if not a full if (m_unmountActions.contains). right<br>
now that should never be a problem, but it&#39;s one of those things that&#39;s really<br>
easy to introduce as a problem later on :)</blockquote><div><br>&nbsp; I&#39;m not sure i can imagine a case when set == false and m_unmountActions does not contain the entry.<br>&nbsp; but i think i&#39;ll put the Q_ASSERT as you suggested :P<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
looking at the screenshots i have two little comments:<br>
<br>
* the action seems to be on the &quot;wrong&quot; side of the dialog. reading left-to-<br>
right it should be &quot;noun, verb&quot; as in &quot;the object i want to operate on, the<br>
thing i want to do with it&quot; since before deciding to eject i first need to<br>
find what to eject ...</blockquote><div><br>&nbsp;&nbsp; do you mean i should put the icon action on the right? will do :) <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
looking at the code it seems that this is using Plasma::IconWidget to paint<br>
it; that icon should actually be in the corner of the icon itself, not the<br>
corner of the widget. so, that&#39;s a small bug in Plasma::IconWidget.</blockquote><div><br>&nbsp;&nbsp; i will try to look at in and fix :P <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
* the 128 px minimum size is probably a bit much. for preferred size it makes<br>
sense, but it should be possible to make them smaller than that.</blockquote><div><br>&nbsp;&nbsp; right, just was waiting for suggestions =)<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
otherwise, it&#39;s looking nice.. :)</blockquote><div><br>&nbsp; thanks =) <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA &nbsp;EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Software<br>
<br>
</font><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br><br clear="all">Cheers<br>-- <br>Alessandro Diaferia<br>