te::qt::widgets::ColorPickerToolButton Class Reference

Custom tool button used to pick a color. More...

#include <ColorPickerToolButton.h>

Inheritance diagram for te::qt::widgets::ColorPickerToolButton:

Signals

void colorChanged (const QColor &)
 

Public Member Functions

 ColorPickerToolButton (QWidget *parent=0)
 
QColor getColor () const
 
void setColor (const QColor &color)
 
 ~ColorPickerToolButton ()
 

Protected Slots

void onPopupSelected (const QColor &color)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *e)
 
void resizeEvent (QResizeEvent *e)
 
void updateIcon ()
 

Private Attributes

bool m_isOpen
 
ColorPickerPopupm_popup
 
QColor m_selectedColor
 

Detailed Description

Custom tool button used to pick a color.

Definition at line 236 of file ColorPickerToolButton.h.

Constructor & Destructor Documentation

◆ ColorPickerToolButton()

te::qt::widgets::ColorPickerToolButton::ColorPickerToolButton ( QWidget *  parent = 0)

◆ ~ColorPickerToolButton()

te::qt::widgets::ColorPickerToolButton::~ColorPickerToolButton ( )

Member Function Documentation

◆ colorChanged

void te::qt::widgets::ColorPickerToolButton::colorChanged ( const QColor &  )
signal

◆ getColor()

QColor te::qt::widgets::ColorPickerToolButton::getColor ( ) const

◆ mousePressEvent()

void te::qt::widgets::ColorPickerToolButton::mousePressEvent ( QMouseEvent *  e)
protected

◆ onPopupSelected

void te::qt::widgets::ColorPickerToolButton::onPopupSelected ( const QColor &  color)
protectedslot

◆ resizeEvent()

void te::qt::widgets::ColorPickerToolButton::resizeEvent ( QResizeEvent *  e)
protected

◆ setColor()

void te::qt::widgets::ColorPickerToolButton::setColor ( const QColor &  color)

◆ updateIcon()

void te::qt::widgets::ColorPickerToolButton::updateIcon ( )
protected

Member Data Documentation

◆ m_isOpen

bool te::qt::widgets::ColorPickerToolButton::m_isOpen
private

Definition at line 270 of file ColorPickerToolButton.h.

◆ m_popup

ColorPickerPopup* te::qt::widgets::ColorPickerToolButton::m_popup
private

Definition at line 268 of file ColorPickerToolButton.h.

◆ m_selectedColor

QColor te::qt::widgets::ColorPickerToolButton::m_selectedColor
private

Definition at line 269 of file ColorPickerToolButton.h.


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