type and version setting so qstyleoption_cast works
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828146
This commit is contained in:
parent
b9419d74bb
commit
be453f062b
@ -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,
|
||||
|
@ -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 };
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user