Make KDecorationFactory ctor protected
It's not supposed to be invoked directly, but always through a subclass.
This commit is contained in:
parent
784c40a338
commit
ae50ef270b
1 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue