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 234 of file ColorPickerToolButton.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void te::qt::widgets::ColorPickerToolButton::colorChanged ( const QColor &  )
signal
QColor te::qt::widgets::ColorPickerToolButton::getColor ( ) const
void te::qt::widgets::ColorPickerToolButton::mousePressEvent ( QMouseEvent *  e)
protected
void te::qt::widgets::ColorPickerToolButton::onPopupSelected ( const QColor &  color)
protectedslot
void te::qt::widgets::ColorPickerToolButton::resizeEvent ( QResizeEvent *  e)
protected
void te::qt::widgets::ColorPickerToolButton::setColor ( const QColor &  color)
void te::qt::widgets::ColorPickerToolButton::updateIcon ( )
protected

Member Data Documentation

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

Definition at line 268 of file ColorPickerToolButton.h.

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

Definition at line 266 of file ColorPickerToolButton.h.

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

Definition at line 267 of file ColorPickerToolButton.h.


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