On Tuesday, August 17, 2010, Will Stephenson wrote: > If the hide buttons would be qwidgets, but we want to have the right > themeing, would this make them Plasma::Toolbuttons drawn on separate Views > as QWidgets?
it can probably be a lot simpler than that even... we have a themed QToolButton in libplasmagenericshell called ToolButton. we can (and do) use those as regular ol' QWidgets. then there is PanelView in desktop/shell/panelview.h which is a QWidget as well, and the PanelView class does the hide/show management. so when it is set to manual hiding, PanelView could create a ToolButton and place it as a child QWidget. it could set a contents margin on itself to make room for it, and then the containment will naturally be adjusted to fit that. some of the calculations for things like "maximize panel" may require some adjustments as a result, unless they are already based on contentsRect() rather than just size(). so in this case it's really just typical QWidget based development and there isn't really any special Plasma / QGraphicsView voodoo needed :) -- 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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel