[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    [Panel-devel] Plasma::Widget subclassing and QGVItem's
From:       "Matias Valdenegro T." <mvaldenegro () informatica ! utem ! cl>
Date:       2007-05-23 0:41:31
Message-ID: 200705222041.31284.mvaldenegro () informatica ! utem ! cl
[Download RAW message or body]

Hi :

I want to discuss the way were going to take, as currently in 
lib/plasma/widgets there are :

- Layout
- LayoutItem
- VBoxLayout (HBoxLayout/GridLayout coming soon)
- Widget

As Aaron pointed now is not possible to add QGraphicsItems to layouts because 
they don't inherit LayoutItem (That's the only requerimient to be 
layout-manageable), so there's a few choices :

- Create classes that inherit LayoutItem and the desired Qt Graphics Item to 
implement boundingRect() virtually.
- Use dynamic properties on LayoutItems, but still you need a way to notify 
the LayoutItem that it's geometry has changed and it needs to be redrawn.

I'm still on the idea that all Plasma Widgets inherit Plasma::Widget, but for 
Qt's ones we should implement a workaround or something.

Any thoughts?
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic