ColorPickerItem Class Reference
Public Slots | |
void setColor (const QColor &color, const QString &text=QString()) | |
Signals | |
void clicked () | |
void selected () | |
Public Member Functions | |
QColor color () const | |
ColorPickerItem (const QColor &color=Qt::white, const QString &text=QString::null, QWidget *parent=0) | |
bool isSelected () const | |
void setSelected (bool) | |
QString text () const | |
~ColorPickerItem () | |
Protected Member Functions | |
void mouseMoveEvent (QMouseEvent *e) | |
void mousePressEvent (QMouseEvent *e) | |
void mouseReleaseEvent (QMouseEvent *e) | |
void paintEvent (QPaintEvent *e) | |
Constructor & Destructor Documentation
◆ ColorPickerItem()
ColorPickerItem::ColorPickerItem | ( | const QColor & | color = Qt::white , |
const QString & | text = QString::null , |
||
QWidget * | parent = 0 |
||
) |
Constructs a ColorPickerItem whose color is set to color, and whose name is set to text.
◆ ~ColorPickerItem()
ColorPickerItem::~ColorPickerItem | ( | ) |
Destructs a ColorPickerItem.
Member Function Documentation
◆ clicked
|
signal |
◆ color()
QColor ColorPickerItem::color | ( | ) | const |
Returns the item's color.
- See also
- text()
Referenced by ArchSite.Compass::buildCoordinates(), ColorPickerPopup::keyPressEvent(), setColor(), and ColorPickerPopup::updateSelected().
◆ isSelected()
bool ColorPickerItem::isSelected | ( | ) | const |
◆ mouseMoveEvent()
|
protected |
◆ mousePressEvent()
|
protected |
◆ mouseReleaseEvent()
|
protected |
References selected().
◆ paintEvent()
|
protected |
◆ selected
|
signal |
Referenced by mouseReleaseEvent(), and setSelected().
◆ setColor
|
slot |
◆ setSelected()
void ColorPickerItem::setSelected | ( | bool | selected | ) |
References selected().
Referenced by ColorPickerPopup::insertColor(), ColorPickerPopup::keyPressEvent(), QtColorPicker::setCurrentColor(), and ColorPickerPopup::updateSelected().
◆ text()
QString ColorPickerItem::text | ( | ) | const |
Returns the item's text.
- See also
- color()
Referenced by setColor(), and QtColorPicker::setCurrentColor().
The documentation for this class was generated from the following file:
- src/Mod/Spreadsheet/Gui/qtcolorpicker.cpp