28 #ifndef QTCOLORBUTTON_H
29 #define QTCOLORBUTTON_H
33 #include <QToolButton>
40 Q_PROPERTY(
bool backgroundCheckered READ isBackgroundCheckered WRITE setBackgroundCheckered)
41 Q_PROPERTY(
bool alphaAllowed READ isAlphaAllowed WRITE setAlphaAllowed)
46 bool isBackgroundCheckered() const;
47 void setBackgroundCheckered(
bool checkered);
49 bool isAlphaAllowed() const;
50 void setAlphaAllowed(
bool allowed);
55 void setColor(const QColor &color);
58 void colorChanged(const QColor &color);
60 void paintEvent(QPaintEvent *event);
61 void mousePressEvent(QMouseEvent *event);
62 void mouseMoveEvent(QMouseEvent *event);
63 #ifndef QT_NO_DRAGANDDROP
64 void dragEnterEvent(QDragEnterEvent *event);
65 void dragLeaveEvent(QDragLeaveEvent *event);
66 void dropEvent(QDropEvent *event);
72 Q_PRIVATE_SLOT(d_ptr,
void slotEditColor())
77 #endif // QTCOLORBUTTON_H