Make KDecorationFactory ctor protected

It's not supposed to be invoked directly, but always through a
subclass.
icc-effect-5.14.5
Martin Gräßlin 2013-08-23 12:11:25 +02:00
parent 784c40a338
commit ae50ef270b
1 changed files with 5 additions and 5 deletions

View File

@ -39,11 +39,6 @@ class KWIN_EXPORT KDecorationFactory
{ {
Q_OBJECT Q_OBJECT
public: 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 * Destructor. Called before unloading the decoration plugin. All global
* cleanup of the plugin should be done in the factory destructor. * cleanup of the plugin should be done in the factory destructor.
@ -113,6 +108,11 @@ public:
*/ */
void removeDecoration(KDecoration*); void removeDecoration(KDecoration*);
protected: 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 * Convenience function that calls KDecoration::reset() for all decoration
* objects. * objects.