Make KDecorationFactory ctor protected

It's not supposed to be invoked directly, but always through a
subclass.
This commit is contained in:
Martin Gräßlin 2013-08-23 12:11:25 +02:00
parent 784c40a338
commit ae50ef270b

View file

@ -39,11 +39,6 @@ class KWIN_EXPORT KDecorationFactory
{
Q_OBJECT
public:
/**
* Constructor. Called after loading the decoration plugin. All global
* initialization of the plugin should be done in the factory constructor.
*/
explicit KDecorationFactory(QObject *parent = nullptr);
/**
* Destructor. Called before unloading the decoration plugin. All global
* cleanup of the plugin should be done in the factory destructor.
@ -113,6 +108,11 @@ public:
*/
void removeDecoration(KDecoration*);
protected:
/**
* Constructor. Called after loading the decoration plugin. All global
* initialization of the plugin should be done in the factory constructor.
*/
explicit KDecorationFactory(QObject *parent = nullptr);
/**
* Convenience function that calls KDecoration::reset() for all decoration
* objects.