Aaron J. Seigo Ð´µÀ:<br>&gt; On Thursday 23 July 2009, ÅËÎÀƽ(Peter Pan) wrote:<br>&gt;&gt; Taht will cover the icon and looks mussy.<br>&gt;&gt; I prefer to let it over the text.<br>&gt; <br>&gt; hm.. ok, how about on the right side of the button then, where the # of <br>
&gt; windows usually appears when there are several windows grouped?<br>&gt; <br>&gt; also as for this:<br>&gt; <br>&gt; +&nbsp;&nbsp;&nbsp; QRectF rect = parentGroup()-&gt;tasksLayout()-&gt;contentsRect();<br>&gt; +&nbsp;&nbsp;&nbsp; int rowCount = parentGroup()-&gt;tasksLayout()-&gt;rowCount();<br>
&gt; +&nbsp;&nbsp;&nbsp; qreal height = rect.height() / rowCount; <br>&gt; +&nbsp;&nbsp;&nbsp; QSizeF size(height, height);<br>&gt; <br>&gt; it should be able to just position it relative to the task button itself, <br>&gt; something like this which would make it consistent with the group number <br>
&gt; drawing as well:<br>&gt; <br>&gt; Plasma::FrameSvg *itemBackground = m_applet-&gt;itemBackground();<br>&gt; QSizeF busySize(itemBackground-&gt;elementSize(expanderElement()));<br>&gt; QRectF animationRect(QPointF(size().width() - busySize.width(), (size.height() <br>
&gt; - busySize.height())&nbsp; / 2), busySize);<br>&gt; <br>&gt; even with this code, however, if the size of the button changes while the app <br>&gt; is launching the busy widget will no longer be in the right place.<br>&gt; <br>
&gt; so ... either the positioning code should be put into a separate method and be <br>&gt; called from both startStartupAnimation and resizeEvent or a layout should be <br>&gt; used to manage that for us. a layout is probably overkill in this situation, <br>
&gt; though.<br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Plasma-devel mailing list<br>
&gt; <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>&gt; <a href="https://mail.kde.org/mailman/listinfo/plasma-devel">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br><br>Fisrt, I prefer to use Plasma::BusyWidget, consistent with others.<br>
<br>Second, I prefer to replace icon when the app is starting up, like<br>firefox when it is opening a new website.<br><br>Third, I set the BusyWidgest&#39;s geometry in AbstractTaskItem::drawTask(),<br>so it can get the proper geometry.<br>
<br>Best regards!<br><br><br>-- <br>ÅËÎÀƽ(Peter Pan)<br>