21 #ifndef VCOLORPROPERTYEDITOR_H
22 #define VCOLORPROPERTYEDITOR_H
24 #include <qcompilerdetection.h>
28 #include <QMetaObject>
31 #include <QSpacerItem>
33 #include <QToolButton>
59 static QPixmap
GetColorPixmap(
const QColor &color, quint32 size = 16);
67 virtual bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE;
static QString GetColorString(const QColor &color)
A helper function to convert a color into a string.
VColorPropertyEditor(QWidget *parent)
Constructor taking a widget as parent.
static QPixmap GetColorPixmap(const QColor &color, quint32 size=16)
A little helper function generating an image to represent a color.
virtual bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE
Needed for proper event handling.
void dataChangedByUser(const QColor &GetColor, VColorPropertyEditor *editor)
This is emitted, when the user changes the color.
QColor getLineColor() const
Returns the color currently set.
virtual ~VColorPropertyEditor() Q_DECL_OVERRIDE
Destructor.
void onToolButtonClicked()
void setLineColor(const QColor &color_)
Sets the color of the widget.