Create a frame with a default color palette. More...
#include <ColorPickerToolButton.h>
Signals | |
void | selected (const QColor &color) |
Public Member Functions | |
ColorPickerPopup (QWidget *parent=0) | |
void | mouseMoveEvent (QMouseEvent *) |
void | mousePressEvent (QMouseEvent *e) |
void | paintButton (QPainter *painter, const QRectF &rc, const QString &text, bool hover) |
void | paintEvent (QPaintEvent *) |
void | setSelected (QColor color) |
Public Attributes | |
QRectF | m_buttonKeyRect |
QList< ColorKeyInfo > | m_colorInfos |
QColor | m_currentColor |
QColor | m_hoverColor |
QRgb | m_stdrgb [48] |
Create a frame with a default color palette.
Definition at line 80 of file ColorPickerToolButton.h.
|
inline |
|
inline |
Definition at line 172 of file ColorPickerToolButton.h.
|
inline |
Definition at line 177 of file ColorPickerToolButton.h.
References m_buttonKeyRect, m_colorInfos, m_currentColor, m_hoverColor, and selected().
|
inline |
Definition at line 110 of file ColorPickerToolButton.h.
Referenced by paintEvent().
|
inline |
Definition at line 118 of file ColorPickerToolButton.h.
References COLORSIZE, COLS, m_buttonKeyRect, m_colorInfos, m_hoverColor, m_stdrgb, MARGINX, MARGINY, paintButton(), and SPACE.
|
signal |
Referenced by mousePressEvent().
|
inline |
Definition at line 209 of file ColorPickerToolButton.h.
References m_currentColor.
QRectF te::qt::widgets::ColorPickerPopup::m_buttonKeyRect |
Definition at line 224 of file ColorPickerToolButton.h.
Referenced by mousePressEvent(), and paintEvent().
QList<ColorKeyInfo> te::qt::widgets::ColorPickerPopup::m_colorInfos |
Definition at line 223 of file ColorPickerToolButton.h.
Referenced by mousePressEvent(), and paintEvent().
QColor te::qt::widgets::ColorPickerPopup::m_currentColor |
Definition at line 221 of file ColorPickerToolButton.h.
Referenced by mousePressEvent(), and setSelected().
QColor te::qt::widgets::ColorPickerPopup::m_hoverColor |
Definition at line 220 of file ColorPickerToolButton.h.
Referenced by mousePressEvent(), and paintEvent().
QRgb te::qt::widgets::ColorPickerPopup::m_stdrgb[48] |
Definition at line 222 of file ColorPickerToolButton.h.
Referenced by ColorPickerPopup(), and paintEvent().