4 #ifndef pqColorChooserButton_h 5 #define pqColorChooserButton_h 10 #include <QToolButton> 21 Q_PROPERTY(QColor chosenColor READ chosenColor WRITE setChosenColor USER
true);
22 Q_PROPERTY(QVariantList chosenColorRgbF READ chosenColorRgbF WRITE setChosenColorRgbF);
23 Q_PROPERTY(QVariantList chosenColorRgbaF READ chosenColorRgbaF WRITE setChosenColorRgbaF);
24 Q_PROPERTY(
bool showAlphaChannel READ showAlphaChannel WRITE setShowAlphaChannel);
35 QColor chosenColor()
const;
41 QVariantList chosenColorRgbF()
const;
47 QVariantList chosenColorRgbaF()
const;
66 void chosenColorChanged(
const QColor&);
72 void validColorChosen(
const QColor&);
78 virtual void setChosenColor(
const QColor&);
84 void setChosenColorRgbF(
const QVariantList&);
90 void setChosenColorRgbaF(
const QVariantList&);
95 virtual void chooseColor();
101 void resizeEvent(QResizeEvent* rEvent)
override;
106 QIcon renderColorSwatch(
const QColor&);