type and version setting so qstyleoption_cast works

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828146
This commit is contained in:
Aaron J. Seigo 2008-07-04 19:24:45 +00:00
parent b9419d74bb
commit be453f062b
2 changed files with 7 additions and 1 deletions

View File

@ -59,19 +59,24 @@ Containment::StyleOption::StyleOption()
: QStyleOptionGraphicsItem(),
view(0)
{
version = Version;
type = Type;
}
Containment::StyleOption::StyleOption(const Containment::StyleOption & other)
: QStyleOptionGraphicsItem(other),
view(other.view)
{
version = Version;
type = Type;
}
Containment::StyleOption::StyleOption(const QStyleOptionGraphicsItem &other)
: QStyleOptionGraphicsItem(other),
view(0)
{
version = Version;
type = Type;
}
Containment::Containment(QGraphicsItem* parent,

View File

@ -75,6 +75,7 @@ class PLASMA_EXPORT Containment : public Applet
explicit StyleOption(const StyleOption &other);
explicit StyleOption(const QStyleOptionGraphicsItem &other);
enum StyleOptionType { Type = SO_CustomBase + 1 };
enum StyleOptionVersion { Version = QStyleOptionGraphicsItem::Version + 1 };
/**