<div class="gmail_quote">Em 22 de fevereiro de 2011 18:26, Luiz Romário Santana Rios <span dir="ltr">&lt;<a href="mailto:luizromario@gmail.com">luizromario@gmail.com</a>&gt;</span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I&#39;ll try to start Activity plasmoid.<div><br><div class="gmail_quote">2011/2/22 Marco Martin <span dir="ltr">&lt;<a href="mailto:notmart@gmail.com" target="_blank">notmart@gmail.com</a>&gt;</span><div><div></div><div class="h5">

<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Friday 11 February 2011, Marco Martin wrote:<br>
&gt; in this thread talk about ideas, anything comes to your mind will do, there<br>
&gt; is already a wiki page for it<br>
&gt; <a href="http://community.kde.org/Plasma/Tasks" target="_blank">http://community.kde.org/Plasma/Tasks</a><br>
<br>
</div>Now i see that this page has gotten pretty popuplated, thats good!<br>
<br>
there is only one taker in the table at the bottom of the page, so, let&#39;s go?<br>
who takes what?;)<br>
<div><div></div><div><br>
Cheers,<br>
Marco Martin<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">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>
</div></div></blockquote></div></div></div><br><br clear="all"><br>-- <br>Luiz Romário Santana Rios<br>
</div>
</blockquote></div><br>So, I took a look at the docs, and it looks rather simple to do that button. You tell me if I&#39;m doing it right:<div><br></div><div> - Create an icon widget.</div><div>   + Just a Plasma.IconWidget, right? The only problem is that QIcon doesn&#39;t seem to be supported by QML, so I can&#39;t set the icon property.</div>

<div> - Declare a QObject based on QDBusInterface to QML.</div><div>   + Since QML elements only support default constructors, create a new class that composes QDBusInterface and turn each argument of the constructor into a property.</div>

<div>   + Create an asyncCall method that just calls QDBusInterface&#39;s asyncCall and make it Q_EXPORTABLE.</div><div> - Instantiate a DBus Interface of plasma on the QML.</div><div>   + Just pass the constructor parameters as properties (How do I know which plasma shell [plasma-desktop, plasma-netbook] is running?).</div>

<div> - Make an asyncCall onClicked.</div><div>   + onClicked: iface.asyncCall(&quot;local.PlasmaApp.toggleDashborad()&quot;), I guess.</div><div><br></div><div>-- <br>Luiz Romário Santana Rios<br>
</div>