Changeset View
Changeset View
Standalone View
Standalone View
libs/image/brushengine/kis_combo_based_paintop_property.cpp
Show All 31 Lines | 31 | KisComboBasedPaintOpProperty::KisComboBasedPaintOpProperty(const QString &id, | |||
---|---|---|---|---|---|
32 | const QString &name, | 32 | const QString &name, | ||
33 | KisPaintOpSettingsSP settings, | 33 | KisPaintOpSettingsSP settings, | ||
34 | QObject *parent) | 34 | QObject *parent) | ||
35 | : KisUniformPaintOpProperty(Combo, id, name, settings, parent), | 35 | : KisUniformPaintOpProperty(Combo, id, name, settings, parent), | ||
36 | m_d(new Private) | 36 | m_d(new Private) | ||
37 | { | 37 | { | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | KisComboBasedPaintOpProperty::KisComboBasedPaintOpProperty(Type type, | ||||
41 | const QString &id, | ||||
42 | const QString &name, | ||||
43 | KisPaintOpSettingsSP settings, | ||||
44 | QObject *parent) | ||||
45 | : KisUniformPaintOpProperty(Combo, id, name, settings, parent), | ||||
46 | m_d(new Private) | ||||
47 | { | ||||
48 | KIS_ASSERT_RECOVER_RETURN(type == Combo); | ||||
49 | } | ||||
50 | | ||||
40 | KisComboBasedPaintOpProperty::~KisComboBasedPaintOpProperty() | 51 | KisComboBasedPaintOpProperty::~KisComboBasedPaintOpProperty() | ||
41 | { | 52 | { | ||
42 | } | 53 | } | ||
43 | 54 | | |||
44 | QList<QString> KisComboBasedPaintOpProperty::items() const | 55 | QList<QString> KisComboBasedPaintOpProperty::items() const | ||
45 | { | 56 | { | ||
46 | return m_d->items; | 57 | return m_d->items; | ||
47 | } | 58 | } | ||
48 | 59 | | |||
49 | void KisComboBasedPaintOpProperty::setItems(const QList<QString> &list) | 60 | void KisComboBasedPaintOpProperty::setItems(const QList<QString> &list) | ||
50 | { | 61 | { | ||
51 | m_d->items = list; | 62 | m_d->items = list; | ||
52 | } | 63 | } | ||
53 | 64 | | |||
54 | QList<QIcon> KisComboBasedPaintOpProperty::icons() const | 65 | QList<QIcon> KisComboBasedPaintOpProperty::icons() const | ||
55 | { | 66 | { | ||
56 | return m_d->icons; | 67 | return m_d->icons; | ||
57 | } | 68 | } | ||
58 | 69 | | |||
59 | void KisComboBasedPaintOpProperty::setIcons(const QList<QIcon> &list) | 70 | void KisComboBasedPaintOpProperty::setIcons(const QList<QIcon> &list) | ||
60 | { | 71 | { | ||
61 | m_d->icons = list; | 72 | m_d->icons = list; | ||
62 | } | 73 | } | ||
63 | 74 | | |||
64 | 75 | template class KisCallbackBasedPaintopProperty<KisComboBasedPaintOpProperty>; |