A new way of QML PopupApplets

Viranch Mehta viranch.mehta at gmail.com
Fri Mar 2 01:17:04 UTC 2012


On Fri, Mar 2, 2012 at 3:35 AM, Marco Martin <notmart at gmail.com> wrote:

> right now it wasn't possible to write in qml those applets that are always
> collapsed to a tiny element, but *not* an icon, like the notifications or
> the
> digital clock.
>
>
Aren't we already doing this thing in battery monitor? Its not collapsed to
just
an icon, and it has a popup. The tiny element (battery status svg) is in
the main
qml item of the plasmoid, and the popup component (power profiles, screen
brightness, etc.) is inside a PlasmaCore.Dialog's mainItem. And this is
without making it a PopupApplet.


> exporting a Component property "compactRepresentation", will use that
> whatever
> widgets and fancy graphics contains as icon and will be always collapsed,
> just
> the same behavior of the c++ ones.
>
>
This method does sound like a more convenient way of doing it though.

Cheers,
Viranch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120302/9f09491c/attachment.html>


More information about the Plasma-devel mailing list