We extend QStyleOptionGraphicsItem and need to increment the version else we run into a crash on qstyleoption_cast<const Containment::StyleOption *>(option)->view if we got a QStyleOptionGraphicsItem rather then a Containment::StyleOption.

And now "plasmoidviewer panel" does work too :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827678
This commit is contained in:
Sebastian Sauer 2008-07-03 15:58:37 +00:00
parent 92ee66d578
commit 6d5bd4b176

View File

@ -75,6 +75,8 @@ class PLASMA_EXPORT Containment : public Applet
explicit StyleOption(const StyleOption &other);
explicit StyleOption(const QStyleOptionGraphicsItem &other);
enum StyleOptionVersion { Version = QStyleOptionGraphicsItem::Version + 1 };
/**
* The View, if any, that this containment is currently
* being rendered into. Note: this may be NULL, so be