diff --git a/libkdecorations/kdecorationfactory.cpp b/libkdecorations/kdecorationfactory.cpp index 2825032674..7d3637caf7 100644 --- a/libkdecorations/kdecorationfactory.cpp +++ b/libkdecorations/kdecorationfactory.cpp @@ -34,6 +34,7 @@ public: closeButtonCorner = (Qt::Corner)0; } Qt::Corner closeButtonCorner; + QList< KDecoration* > decorations; }; KDecorationFactory::KDecorationFactory(QObject *parent) @@ -45,7 +46,7 @@ KDecorationFactory::KDecorationFactory(QObject *parent) KDecorationFactory::~KDecorationFactory() { delete d; - assert(_decorations.count() == 0); + assert(d->decorations.count() == 0); } void KDecorationFactory::checkRequirements(KDecorationProvides*) @@ -59,7 +60,7 @@ QList< KDecorationDefines::BorderSize > KDecorationFactory::borderSizes() const bool KDecorationFactory::exists(const KDecoration* deco) const { - return _decorations.contains(const_cast< KDecoration* >(deco)); + return d->decorations.contains(const_cast< KDecoration* >(deco)); } Qt::Corner KDecorationFactory::closeButtonCorner() @@ -76,12 +77,12 @@ void KDecorationFactory::setCloseButtonCorner(Qt::Corner cnr) void KDecorationFactory::addDecoration(KDecoration* deco) { - _decorations.append(deco); + d->decorations.append(deco); } void KDecorationFactory::removeDecoration(KDecoration* deco) { - _decorations.removeAll(deco); + d->decorations.removeAll(deco); } NET::WindowType KDecorationFactory::windowType(unsigned long supported_types, KDecorationBridge* bridge) const diff --git a/libkdecorations/kdecorationfactory.h b/libkdecorations/kdecorationfactory.h index 5ba9a52d5c..00a7cbabb6 100644 --- a/libkdecorations/kdecorationfactory.h +++ b/libkdecorations/kdecorationfactory.h @@ -120,7 +120,6 @@ protected: */ NET::WindowType windowType(unsigned long supported_types, KDecorationBridge* bridge) const; private: - QList< KDecoration* > _decorations; KDecorationFactoryPrivate* d; };