![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|


Public Slots | |
| void | setColor (const QColor &color, const QString &text=QString()) |
Signals | |
| void | clicked () |
| void | selected () |
| void | clicked (const QColor &clr) |
Public Member Functions | |
| ColorPickerItem (const QColor &color=Qt::white, const QString &text=QString(), QWidget *parent=0) | |
| ~ColorPickerItem () | |
| QColor | color () const |
| QString | text () const |
| void | setSelected (bool) |
| bool | isSelected () const |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *e) |
| void | mouseReleaseEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *e) |
| void | paintEvent (QPaintEvent *e) |
Definition at line 134 of file qtcolorpicker.cpp.
| Widgets::ColorPickerItem::ColorPickerItem | ( | const QColor & | color = Qt::white, |
| const QString & | text = QString(), |
||
| QWidget * | parent = 0 |
||
| ) |
Constructs a ColorPickerItem whose color is set to color, and whose name is set to text.
Definition at line 843 of file qtcolorpicker.cpp.
| Widgets::ColorPickerItem::~ColorPickerItem | ( | ) |
Destructs a ColorPickerItem.
Definition at line 855 of file qtcolorpicker.cpp.
|
signal |
Referenced by mousePressEvent().
|
signal |
| QColor Widgets::ColorPickerItem::color | ( | ) | const |
Returns the item's color.
Definition at line 862 of file qtcolorpicker.cpp.
Referenced by Widgets::ColorPickerPopup::keyPressEvent(), setColor(), and Widgets::ColorPickerPopup::updateSelected().
| bool Widgets::ColorPickerItem::isSelected | ( | ) | const |
Definition at line 874 of file qtcolorpicker.cpp.
|
protected |
Definition at line 897 of file qtcolorpicker.cpp.
|
protected |
Definition at line 913 of file qtcolorpicker.cpp.
References clicked().
|
protected |
Definition at line 905 of file qtcolorpicker.cpp.
References selected().
|
protected |
Definition at line 922 of file qtcolorpicker.cpp.
References ecvColor::black(), height, and width.
|
signal |
Referenced by mouseReleaseEvent(), and setSelected().
|
slot |
Sets the item's color to color, and its name to text.
Definition at line 887 of file qtcolorpicker.cpp.
| void Widgets::ColorPickerItem::setSelected | ( | bool | selected | ) |
Definition at line 879 of file qtcolorpicker.cpp.
References selected().
Referenced by Widgets::ColorPickerPopup::insertColor(), Widgets::ColorPickerPopup::keyPressEvent(), Widgets::QtColorPicker::setCurrentColor(), and Widgets::ColorPickerPopup::updateSelected().
| QString Widgets::ColorPickerItem::text | ( | ) | const |
Returns the item's text.
Definition at line 869 of file qtcolorpicker.cpp.
Referenced by setColor(), and Widgets::QtColorPicker::setCurrentColor().