A couple of questions about QML Plasma bindings

Aaron J. Seigo aseigo at kde.org
Wed Mar 23 12:34:50 CET 2011


On Tuesday, March 22, 2011, Marco Martin wrote:
> On Saturday 19 March 2011, Marco Martin wrote:
> > Text {
> > 
> >   id:textItem
> >   text: "foobar"
> > 
> > }
> > 
> >  PlasmaCore.ToolTipData {
> >  
> >        item: textItem
> >        icon: QIcon("konqueror")
> >        title: " foo"
> >        subtext: "bar"
> >   
> >   }
> 
> small update,
> started to implement this...
> good news everybody! since ToolTipManager requires to register
> QGraphicsWidgets...
> most of its functions will have to be duplicated to accept QGraphicsObjects
> and an happy new big set of deprecated stuff :D

doh!

seeing as this was written before not only QML but also QGraphicsObject, i 
suppose it's no big surprise. at one point it did work (for a poor deifnition 
of "work") with QGraphicsItems, but we dropped that after the annoyances kept 
mounting around that approach.

ah well ... one day Qt will settle down, become boring again and we won't be 
hit in the head by a new train barreling down the tracks every 8 months ;)

> (i'm almost tempted to rewrite tooltipmanager to accept only
> qgraphicsobjects and put its code directly in the qml plugin that will
> wrap tooltipcontent, anyways that's a class less for sure that will have
> to be exported in libplasma2)

i guess this needs to be added to the libplasma2 page?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20110323/18a9eb45/attachment.sig 


More information about the Plasma-devel mailing list