Technical Advise for PlasmaQuick::ContainmentView [Latte]
Michail Vourlakos
mvourlakos at gmail.com
Mon Jul 1 11:20:23 BST 2019
Thank for the response Martin,
I ended up recreating the View and does the trick but that has some
downsides from accessibility and user point of view...
> in order to do that i guess some new api is needed in AppletQuickItem in
libplasmaquick, a reload() method
> Would you be interested looking into that?
yes of course, but after my vacations in mid July, in case I manage to add
the reload() method for AppletQuickItem
I will send the patch in phabricator and assign you as reviewer to discuss
it :)
regards,
michail
Στις Δευ, 1 Ιουλ 2019 στις 1:11 μ.μ., ο/η Marco Martin <notmart at gmail.com>
έγραψε:
> On Thu, Jun 20, 2019 at 11:15 AM Michail Vourlakos <mvourlakos at gmail.com>
> wrote:
> >
> > Hello everyone,
> >
> > I need some help, Latte::Indicators (
> https://store.kde.org/browse/cat/563/) are standalone qml only packages
> like plasma applets which are loaded in order to show Tasks
> indication/information
> >
> > My issue is that when an indicator's qml code is updated I would like
> the user to notice the update runtime in Latte Dock/Panels. Latte is using
> "Plasma::ContainmentView" for docks and panels which derives from
> "KQuickAddons::QuickViewSharedEngine". Searching the Internet for
> QQuickView a solutions is to do:
> >
> > setSouce(QUrl));
> > engine()->clearComponentCache();
> > setSource(corona()->kPackage().filePath("lattedockui"));
> >
> > but that does not work, it just destroys QQmlComponent of
> ContainmentView,
> >
> > Do you have any ideas?
>
> this will reload the source of the view, which is just the tiny qml
> file from the shell poackage..
> so, you need to actually reload the whole containment i guess.
>
> in order to do that i guess some new api is needed in AppletQuickItem
> in libplasmaquick
> a reload() method (callable only from c++, not qml) that would do the
> same with the internal qmlobject (which is kindof the api of
> qquickview, but without a window) to itself and all eventual applet
> children (in case it's a containment)
> Would you be interested looking into that?
>
> --
> Marco Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190701/289c45ee/attachment.html>
More information about the Plasma-devel
mailing list