17 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
18 Q_PROPERTY(
bool backgroundCheckered READ isBackgroundCheckered WRITE setBackgroundCheckered)
23 bool isBackgroundCheckered() const;
24 void setBackgroundCheckered(
bool checkered);
29 void setColor(const QColor &color);
32 void colorChanged(const QColor &color);
35 void paintEvent(QPaintEvent *event) override;
36 void mousePressEvent(QMouseEvent *event) override;
37 void mouseMoveEvent(QMouseEvent *event) override;
38#ifndef QT_NO_DRAGANDDROP
39 void dragEnterEvent(QDragEnterEvent *event)
override;
40 void dragLeaveEvent(QDragLeaveEvent *event)
override;
41 void dropEvent(QDropEvent *event)
override;
45 QScopedPointer<class ColorButtonPrivate> d_ptr;
48 Q_PRIVATE_SLOT(d_func(),
void slotEditColor())