PopupColorButton Class
PopupColorButton class implements a button for the color selection. More...
Header: | #include <PopupColorButton> |
Inherits: | QToolButton |
Properties
- color : QColor
Public Functions
PopupColorButton(QWidget *parent = Q_NULL) | |
virtual | ~PopupColorButton() |
const QColor & | color() const |
void | setColor(const QColor &color) |
Reimplemented Public Functions
virtual QSize | sizeHint() const override |
Signals
void | colorChanged(const QColor &color) |
Reimplemented Protected Functions
virtual void | mousePressEvent(QMouseEvent *e) override |
virtual void | paintEvent(QPaintEvent *painter) override |
Detailed Description
Member Function Documentation
PopupColorButton::PopupColorButton(QWidget *parent = Q_NULL)
Constructs PopupColorButton object with the given parent.
[virtual noexcept]
PopupColorButton::~PopupColorButton()
Destructor of PopupColorButton.
const QColor &PopupColorButton::color() const
Returns the current selected color.
Note: Getter function for property color.
See also setColor().
[signal]
void PopupColorButton::colorChanged(const QColor &color)
The signal is emitted after the color has been selected. Parameter color contains a selected color.
[override virtual protected]
void PopupColorButton::mousePressEvent(QMouseEvent *e)
Reimplements: QToolButton::mousePressEvent(QMouseEvent *e).
[override virtual protected]
void PopupColorButton::paintEvent(QPaintEvent *painter)
Reimplements: QToolButton::paintEvent(QPaintEvent *event).
void PopupColorButton::setColor(const QColor &color)
Sets the specified color and select specified color button.
Note: Setter function for property color.
See also color().
[override virtual]
QSize PopupColorButton::sizeHint() const
Reimplements: QToolButton::sizeHint() const.