Krita Source Code Documentation
Loading...
Searching...
No Matches
KisUniformPaintOpPropertyWidget Class Referenceabstract

#include <kis_uniform_paintop_property_widget.h>

+ Inheritance diagram for KisUniformPaintOpPropertyWidget:

Classes

struct  Private
 

Signals

void valueChanged (const QVariant &value)
 

Public Member Functions

 KisUniformPaintOpPropertyWidget (KisUniformPaintOpPropertySP property, QWidget *parent)
 
void slotThemeChanged (QPalette pal)
 
 ~KisUniformPaintOpPropertyWidget () override
 

Protected Slots

virtual void setValue (const QVariant &value)=0
 

Protected Member Functions

KisUniformPaintOpPropertySP property () const
 

Private Attributes

const QScopedPointer< Privatem_d
 

Detailed Description

Definition at line 16 of file kis_uniform_paintop_property_widget.h.

Constructor & Destructor Documentation

◆ KisUniformPaintOpPropertyWidget()

KisUniformPaintOpPropertyWidget::KisUniformPaintOpPropertyWidget ( KisUniformPaintOpPropertySP property,
QWidget * parent )

Definition at line 33 of file kis_uniform_paintop_property_widget.cpp.

34 : QWidget(parent),
35 m_d(new Private(property))
36{
38 conn->connectForwardVariant(property.data(), SIGNAL(valueChanged(QVariant)),
39 this, SLOT(setValue(QVariant)));
40
41 conn->connectBackwardVariant(this, SIGNAL(valueChanged(QVariant)),
42 property.data(), SLOT(setValue(QVariant)));
43}
void connectBackwardVariant(QObject *sender, const char *signal, QObject *receiver, const char *method)
void connectForwardVariant(QObject *sender, const char *signal, QObject *receiver, const char *method)
void valueChanged(const QVariant &value)
virtual void setValue(const QVariant &value)=0

References KisAcyclicSignalConnector::connectBackwardVariant(), KisAcyclicSignalConnector::connectForwardVariant(), property(), setValue(), and valueChanged().

◆ ~KisUniformPaintOpPropertyWidget()

KisUniformPaintOpPropertyWidget::~KisUniformPaintOpPropertyWidget ( )
override

Definition at line 45 of file kis_uniform_paintop_property_widget.cpp.

46{
47}

Member Function Documentation

◆ property()

KisUniformPaintOpPropertySP KisUniformPaintOpPropertyWidget::property ( ) const
protected

Definition at line 49 of file kis_uniform_paintop_property_widget.cpp.

50{
51 return m_d->property;
52}

References m_d.

◆ setValue

virtual void KisUniformPaintOpPropertyWidget::setValue ( const QVariant & value)
protectedpure virtualslot

◆ slotThemeChanged()

void KisUniformPaintOpPropertyWidget::slotThemeChanged ( QPalette pal)

Definition at line 54 of file kis_uniform_paintop_property_widget.cpp.

55{
56 for(int i=0; i<this->children().size(); i++) {
57 QWidget *w = qobject_cast<QWidget*>(this->children().at(i));
58 if (w) {
59 w->setPalette(pal);
60 }
61 }
62}

◆ valueChanged

void KisUniformPaintOpPropertyWidget::valueChanged ( const QVariant & value)
signal

Member Data Documentation

◆ m_d

const QScopedPointer<Private> KisUniformPaintOpPropertyWidget::m_d
private

Definition at line 35 of file kis_uniform_paintop_property_widget.h.


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