A small widget combining a QLineEdit and a QToolButton for color editing.
More...
#include <QmitkPropertyItemDelegate.h>
|
| void | ColorPicked () |
| | Emitted when a new color has been picked via the dialog or line edit. More...
|
| |
A small widget combining a QLineEdit and a QToolButton for color editing.
Displays a hex color string in the line edit and a colored button. Clicking the button opens a QColorDialog. Used internally by QmitkPropertyItemDelegate.
- See also
- QmitkPropertyItemDelegate
Definition at line 35 of file QmitkPropertyItemDelegate.h.
◆ QmitkColorWidget()
| QmitkColorWidget::QmitkColorWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructs the color widget.
- Parameters
-
| [in] | parent | Optional parent widget. |
◆ ~QmitkColorWidget()
| QmitkColorWidget::~QmitkColorWidget |
( |
| ) |
|
|
override |
◆ ColorPicked
| void QmitkColorWidget::ColorPicked |
( |
| ) |
|
|
signal |
Emitted when a new color has been picked via the dialog or line edit.
◆ GetColor()
| QColor QmitkColorWidget::GetColor |
( |
| ) |
const |
Returns the currently selected color.
- Returns
- The current QColor.
◆ SetColor()
| void QmitkColorWidget::SetColor |
( |
QColor |
color | ) |
|
Sets the displayed color.
- Parameters
-
| [in] | color | The color to set. |
The documentation for this class was generated from the following file: