Computer Assited Medical Intervention Tool Kit  version 5.0
QtColorEditWidget Class Reference
+ Inheritance diagram for QtColorEditWidget:
+ Collaboration diagram for QtColorEditWidget:

Public Slots

void setValue (const QColor &value)
 

Signals

void valueChanged (const QColor &value)
 

Public Member Functions

bool eventFilter (QObject *obj, QEvent *ev) override
 
 QtColorEditWidget (QWidget *parent)
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 

Private Slots

void buttonClicked ()
 

Private Attributes

QToolButton * m_button
 
QColor m_color
 
QLabel * m_label
 
QLabel * m_pixmapLabel
 

Constructor & Destructor Documentation

◆ QtColorEditWidget()

QtColorEditWidget::QtColorEditWidget ( QWidget *  parent)

References QtPropertyBrowserUtils::brushValuePixmap(), buttonClicked(), QtPropertyBrowserUtils::colorValueText(), m_button, m_color, m_label, m_pixmapLabel, and setupTreeViewEditorMargin().

+ Here is the call graph for this function:

Member Function Documentation

◆ buttonClicked

void QtColorEditWidget::buttonClicked ( )
privateslot

References m_color, setValue(), and valueChanged().

Referenced by QtColorEditWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eventFilter()

bool QtColorEditWidget::eventFilter ( QObject *  obj,
QEvent *  ev 
)
override

References m_button.

◆ paintEvent()

void QtColorEditWidget::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setValue

void QtColorEditWidget::setValue ( const QColor &  value)
slot

References QtPropertyBrowserUtils::brushValuePixmap(), QtPropertyBrowserUtils::colorValueText(), m_color, m_label, and m_pixmapLabel.

Referenced by buttonClicked(), and QtColorEditorFactory::createEditor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valueChanged

void QtColorEditWidget::valueChanged ( const QColor &  value)
signal

Referenced by buttonClicked().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_button

QToolButton* QtColorEditWidget::m_button
private

Referenced by eventFilter(), and QtColorEditWidget().

◆ m_color

QColor QtColorEditWidget::m_color
private

◆ m_label

QLabel* QtColorEditWidget::m_label
private

Referenced by QtColorEditWidget(), and setValue().

◆ m_pixmapLabel

QLabel* QtColorEditWidget::m_pixmapLabel
private

Referenced by QtColorEditWidget(), and setValue().


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