Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
pqSignalAdaptorColor Class Reference

signal adaptor to allow getting/setting/observing of an rgba (0.0 - 1.0 range) More...

#include <pqSignalAdaptors.h>

Inherits QObject.

Public Slots

void setColor (const QVariant &)
 set the red component More...
 

Signals

void colorChanged (const QVariant &)
 signal the color changed More...
 

Public Member Functions

 pqSignalAdaptorColor (QObject *p, const char *colorProperty, const char *signal, bool enableAlpha)
 constructor requires a QObject, the name of the QColor property, and a signal for property changes More...
 
QVariant color () const
 get the color components More...
 

Protected Slots

void handleColorChanged ()
 

Protected Attributes

QByteArray PropertyName
 
bool EnableAlpha
 

Properties

QVariant color
 

Detailed Description

signal adaptor to allow getting/setting/observing of an rgba (0.0 - 1.0 range)

Definition at line 78 of file pqSignalAdaptors.h.

Constructor & Destructor Documentation

◆ pqSignalAdaptorColor()

pqSignalAdaptorColor::pqSignalAdaptorColor ( QObject *  p,
const char *  colorProperty,
const char *  signal,
bool  enableAlpha 
)

constructor requires a QObject, the name of the QColor property, and a signal for property changes

Member Function Documentation

◆ color()

QVariant pqSignalAdaptorColor::color ( ) const

get the color components

◆ colorChanged

void pqSignalAdaptorColor::colorChanged ( const QVariant &  )
signal

signal the color changed

◆ setColor

void pqSignalAdaptorColor::setColor ( const QVariant &  )
slot

set the red component

◆ handleColorChanged

void pqSignalAdaptorColor::handleColorChanged ( )
protectedslot

Member Data Documentation

◆ PropertyName

QByteArray pqSignalAdaptorColor::PropertyName
protected

Definition at line 107 of file pqSignalAdaptors.h.

◆ EnableAlpha

bool pqSignalAdaptorColor::EnableAlpha
protected

Definition at line 108 of file pqSignalAdaptors.h.

Property Documentation

◆ color

QVariant pqSignalAdaptorColor::color
readwrite

Definition at line 81 of file pqSignalAdaptors.h.


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