Class ColorPicker#
Inherits the following classes: ColorPickerWidget
Public Functions#
| Type | Name |
|---|---|
| ColorPicker (QWidget * parent=nullptr) |
Public Functions inherited from ColorPickerWidget#
| Type | Name |
|---|---|
| ColorPickerWidget (QWidget * parent=nullptr) |
|
| void | updateSelection (int index) |
| void | updateWidget () |
Public Static Functions inherited from ColorPickerWidget#
| Type | Name |
|---|---|
| const QVector< QColor > & | getDefaultLargeColorPalette () |
| const QVector< QColor > & | getDefaultSmallColorPalette () |
Protected Attributes inherited from ColorPickerWidget#
| Type | Name |
|---|---|
| QVector< QRect > | m_colorAreaList |
| int | m_colorAreaSize |
| QVector< QColor > | m_colorList |
| int | m_lastIndex |
| int | m_selectedIndex |
| QColor | m_uiColor |
Protected Functions#
| Type | Name |
|---|---|
| void | hideEvent (QHideEvent * event) override |
| void | mouseMoveEvent (QMouseEvent * e) override |
| void | showEvent (QShowEvent * event) override |
Protected Functions inherited from ColorPickerWidget#
| Type | Name |
|---|---|
| void | paintEvent (QPaintEvent * event) override |
| void | repaint (int i, QPainter & painter) |
Public Functions Documentation#
function ColorPicker#
explicit ColorPicker::ColorPicker (
QWidget * parent=nullptr
)
Protected Functions Documentation#
function hideEvent#
void ColorPicker::hideEvent (
QHideEvent * event
) override
function mouseMoveEvent#
void ColorPicker::mouseMoveEvent (
QMouseEvent * e
) override
function showEvent#
void ColorPicker::showEvent (
QShowEvent * event
) override