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

#include <kis_combo_based_paintop_property.h>

+ Inheritance diagram for KisComboBasedPaintOpProperty:

Classes

struct  Private
 

Public Member Functions

QList< QIcon > icons () const
 
QList< QString > items () const
 
 KisComboBasedPaintOpProperty (const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
 KisComboBasedPaintOpProperty (Type type, const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
 KisComboBasedPaintOpProperty (Type type, SubType subType, const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
void setIcons (const QList< QIcon > &list)
 
void setItems (const QList< QString > &list)
 
 ~KisComboBasedPaintOpProperty () override
 
- Public Member Functions inherited from KisUniformPaintOpProperty
QWidget * createPropertyWidget ()
 
QString id () const
 
virtual bool isVisible () const
 
 KisUniformPaintOpProperty (const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
 KisUniformPaintOpProperty (Type type, const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
 KisUniformPaintOpProperty (Type type, SubType subType, const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
 
QString name () const
 
KisPaintOpSettingsSP settings () const
 
SubType subType () const
 
Type type () const
 
QVariant value () const
 
 ~KisUniformPaintOpProperty () override
 

Private Attributes

const QScopedPointer< Privatem_d
 

Additional Inherited Members

- Public Types inherited from KisUniformPaintOpProperty
enum  SubType { SubType_None = 0 , SubType_Angle }
 Hint to guess what this property is used for. More...
 
enum  Type { Int = 0 , Double , Bool , Combo }
 
- Public Slots inherited from KisUniformPaintOpProperty
void requestReadValue ()
 
void setValue (const QVariant &value)
 
- Signals inherited from KisUniformPaintOpProperty
void valueChanged (const QVariant &value)
 
- Protected Member Functions inherited from KisUniformPaintOpProperty
virtual void readValueImpl ()
 
virtual void writeValueImpl ()
 

Detailed Description

Definition at line 19 of file kis_combo_based_paintop_property.h.

Constructor & Destructor Documentation

◆ KisComboBasedPaintOpProperty() [1/3]

KisComboBasedPaintOpProperty::KisComboBasedPaintOpProperty ( const KoID & id,
KisPaintOpSettingsRestrictedSP settings,
QObject * parent )

Definition at line 19 of file kis_combo_based_paintop_property.cpp.

21 , m_d(new Private)
22{
23}
KisUniformPaintOpProperty(Type type, SubType subType, const KoID &id, KisPaintOpSettingsRestrictedSP settings, QObject *parent)
KisPaintOpSettingsSP settings() const

◆ ~KisComboBasedPaintOpProperty()

KisComboBasedPaintOpProperty::~KisComboBasedPaintOpProperty ( )
override

Definition at line 39 of file kis_combo_based_paintop_property.cpp.

40{
41}

◆ KisComboBasedPaintOpProperty() [2/3]

KisComboBasedPaintOpProperty::KisComboBasedPaintOpProperty ( Type type,
SubType subType,
const KoID & id,
KisPaintOpSettingsRestrictedSP settings,
QObject * parent )

◆ KisComboBasedPaintOpProperty() [3/3]

KisComboBasedPaintOpProperty::KisComboBasedPaintOpProperty ( Type type,
const KoID & id,
KisPaintOpSettingsRestrictedSP settings,
QObject * parent )

Member Function Documentation

◆ icons()

QList< QIcon > KisComboBasedPaintOpProperty::icons ( ) const

Definition at line 53 of file kis_combo_based_paintop_property.cpp.

54{
55 return m_d->icons;
56}

References m_d.

◆ items()

QList< QString > KisComboBasedPaintOpProperty::items ( ) const

Definition at line 43 of file kis_combo_based_paintop_property.cpp.

44{
45 return m_d->items;
46}

References m_d.

◆ setIcons()

void KisComboBasedPaintOpProperty::setIcons ( const QList< QIcon > & list)

Definition at line 58 of file kis_combo_based_paintop_property.cpp.

59{
60 m_d->icons = list;
61}

References m_d.

◆ setItems()

void KisComboBasedPaintOpProperty::setItems ( const QList< QString > & list)

Definition at line 48 of file kis_combo_based_paintop_property.cpp.

49{
50 m_d->items = list;
51}

References m_d.

Member Data Documentation

◆ m_d

const QScopedPointer<Private> KisComboBasedPaintOpProperty::m_d
private

Definition at line 37 of file kis_combo_based_paintop_property.h.


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