QtiPlot 0.9.7.3
|
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) |
Private Attributes | |
QColor | c |
bool | sel |
QString | t |
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.
References t.
ColorPickerItem::~ColorPickerItem | ( | ) |
Destructs a ColorPickerItem.
void ColorPickerItem::clicked | ( | ) | [signal] |
QColor ColorPickerItem::color | ( | ) | const |
Returns the item's color.
References c.
Referenced by ColorPickerPopup::keyPressEvent(), setColor(), and ColorPickerPopup::updateSelected().
bool ColorPickerItem::isSelected | ( | ) | const |
References sel.
void ColorPickerItem::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected] |
void ColorPickerItem::mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
void ColorPickerItem::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected] |
References sel, and selected().
void ColorPickerItem::selected | ( | ) | [signal] |
Referenced by mouseReleaseEvent(), and setSelected().
void ColorPickerItem::setColor | ( | const QColor & | color, |
const QString & | text = QString() |
||
) | [slot] |
void ColorPickerItem::setSelected | ( | bool | selected | ) |
References sel, and selected().
Referenced by ColorPickerPopup::insertColor(), ColorPickerPopup::keyPressEvent(), QtColorPicker::setCurrentColor(), and ColorPickerPopup::updateSelected().
QString ColorPickerItem::text | ( | ) | const |
Returns the item's text.
References t.
Referenced by setColor(), and QtColorPicker::setCurrentColor().
QColor ColorPickerItem::c [private] |
Referenced by color(), paintEvent(), and setColor().
bool ColorPickerItem::sel [private] |
Referenced by isSelected(), mouseReleaseEvent(), paintEvent(), and setSelected().
QString ColorPickerItem::t [private] |
Referenced by ColorPickerItem(), setColor(), and text().