Featurlets for 4.7
Luiz Romário Santana Rios
luizromario at gmail.com
Thu Feb 24 14:36:51 CET 2011
Em 22 de fevereiro de 2011 18:26, Luiz Romário Santana Rios <
luizromario at gmail.com> escreveu:
> I'll try to start Activity plasmoid.
>
> 2011/2/22 Marco Martin <notmart at gmail.com>
>
> On Friday 11 February 2011, Marco Martin wrote:
>> > in this thread talk about ideas, anything comes to your mind will do,
>> there
>> > is already a wiki page for it
>> > http://community.kde.org/Plasma/Tasks
>>
>> Now i see that this page has gotten pretty popuplated, thats good!
>>
>> there is only one taker in the table at the bottom of the page, so, let's
>> go?
>> who takes what?;)
>>
>> Cheers,
>> Marco Martin
>> _______________________________________________
>> Plasma-devel mailing list
>> Plasma-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>
>
>
>
> --
> Luiz Romário Santana Rios
>
So, I took a look at the docs, and it looks rather simple to do that button.
You tell me if I'm doing it right:
- Create an icon widget.
+ Just a Plasma.IconWidget, right? The only problem is that QIcon doesn't
seem to be supported by QML, so I can't set the icon property.
- Declare a QObject based on QDBusInterface to QML.
+ Since QML elements only support default constructors, create a new
class that composes QDBusInterface and turn each argument of the constructor
into a property.
+ Create an asyncCall method that just calls QDBusInterface's asyncCall
and make it Q_EXPORTABLE.
- Instantiate a DBus Interface of plasma on the QML.
+ Just pass the constructor parameters as properties (How do I know which
plasma shell [plasma-desktop, plasma-netbook] is running?).
- Make an asyncCall onClicked.
+ onClicked: iface.asyncCall("local.PlasmaApp.toggleDashborad()"), I
guess.
--
Luiz Romário Santana Rios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110224/9ae7ec29/attachment.htm
More information about the Plasma-devel
mailing list