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

Public Member Functions

 KoshapeControllerBasePrivate ()
 
 ~KoshapeControllerBasePrivate ()
 

Public Attributes

QPointer< KoDocumentResourceManagerresourceManager
 

Detailed Description

Definition at line 22 of file KoShapeControllerBase.cpp.

Constructor & Destructor Documentation

◆ KoshapeControllerBasePrivate()

KoshapeControllerBasePrivate::KoshapeControllerBasePrivate ( )
inline

Definition at line 25 of file KoShapeControllerBase.cpp.

27 {
29 foreach (const QString &id, registry->keys()) {
30 KoShapeFactoryBase *shapeFactory = registry->value(id);
32 }
33 // read persistent application wide resources
34 KSharedConfigPtr config = KSharedConfig::openConfig();
35 KConfigGroup miscGroup = config->group("Misc");
36 const uint grabSensitivity = miscGroup.readEntry("GrabSensitivity", 10);
37 resourceManager->setGrabSensitivity(grabSensitivity);
38 }
unsigned int uint
const T value(const QString &id) const
QList< QString > keys() const
virtual void newDocumentResourceManager(KoDocumentResourceManager *manager) const
static KoShapeRegistry * instance()
QPointer< KoDocumentResourceManager > resourceManager

References KoShapeRegistry::instance(), KoGenericRegistry< T >::keys(), KoShapeFactoryBase::newDocumentResourceManager(), resourceManager, and KoGenericRegistry< T >::value().

◆ ~KoshapeControllerBasePrivate()

KoshapeControllerBasePrivate::~KoshapeControllerBasePrivate ( )
inline

Definition at line 40 of file KoShapeControllerBase.cpp.

41 {
42 delete resourceManager;
43 }

References resourceManager.

Member Data Documentation

◆ resourceManager

QPointer<KoDocumentResourceManager> KoshapeControllerBasePrivate::resourceManager

Definition at line 45 of file KoShapeControllerBase.cpp.


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