Krita Source Code Documentation
Loading...
Searching...
No Matches
LayerBoxFactory Class Reference

#include <LayerBox.h>

+ Inheritance diagram for LayerBoxFactory:

Public Member Functions

QDockWidget * createDockWidget () override
 
DockPosition defaultDockPosition () const override
 
QString id () const override
 
 LayerBoxFactory ()
 
- Public Member Functions inherited from KoDockFactoryBase
 KoDockFactoryBase ()
 
virtual ~KoDockFactoryBase ()
 

Additional Inherited Members

- Public Types inherited from KoDockFactoryBase
enum  DockPosition {
  DockTornOff , DockTop , DockBottom , DockRight ,
  DockLeft , DockMinimized
}
 

Detailed Description

Definition at line 191 of file LayerBox.h.

Constructor & Destructor Documentation

◆ LayerBoxFactory()

LayerBoxFactory::LayerBoxFactory ( )
inline

Definition at line 195 of file LayerBox.h.

195{ }

Member Function Documentation

◆ createDockWidget()

QDockWidget * LayerBoxFactory::createDockWidget ( )
inlineoverridevirtual

Creates the dock widget

Returns
the created dock widget

Implements KoDockFactoryBase.

Definition at line 201 of file LayerBox.h.

201 {
202 LayerBox * dockWidget = new LayerBox();
203
204 dockWidget->setObjectName(id());
205
206 return dockWidget;
207 }

◆ defaultDockPosition()

DockPosition LayerBoxFactory::defaultDockPosition ( ) const
inlineoverridevirtual
Returns
the dock widget area the widget should appear in by default

Implements KoDockFactoryBase.

Definition at line 209 of file LayerBox.h.

209 {
210 return DockRight;
211 }
@ DockRight
Right of the centra widget.

◆ id()

QString LayerBoxFactory::id ( ) const
inlineoverridevirtual
Returns
the id of the dock widget

Implements KoDockFactoryBase.

Definition at line 197 of file LayerBox.h.

197 {
198 return QString("KisLayerBox");
199 }

The documentation for this class was generated from the following file: