All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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)

Definition at line 29 of file ColorPickerToolButton.cpp.

References m_popup, onPopupSelected(), and setColor().

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

Definition at line 44 of file ColorPickerToolButton.cpp.

Member Function Documentation

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

Definition at line 55 of file ColorPickerToolButton.cpp.

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

Definition at line 66 of file ColorPickerToolButton.cpp.

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

Definition at line 82 of file ColorPickerToolButton.cpp.

Referenced by ColorPickerToolButton().

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

Definition at line 60 of file ColorPickerToolButton.cpp.

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

Definition at line 72 of file ColorPickerToolButton.cpp.

Member Data Documentation

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

Definition at line 266 of file ColorPickerToolButton.h.

Referenced by ColorPickerToolButton().

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 files: