24 #ifndef COLOR_PREVIEW_HPP
25 #define COLOR_PREVIEW_HPP
39 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged DESIGNABLE
true)
40 Q_PROPERTY(QColor comparisonColor READ comparisonColor WRITE setComparisonColor DESIGNABLE true)
41 Q_PROPERTY(
Display_Mode display_mode READ displayMode WRITE setDisplayMode DESIGNABLE true)
42 Q_PROPERTY(QBrush background READ background WRITE setBackground DESIGNABLE true)
58 QBrush background() const;
61 void setBackground(const QBrush& bk);
64 Display_Mode displayMode() const;
67 void setDisplayMode(Display_Mode dm);
73 QColor comparisonColor() const;
75 QSize sizeHint() const;
77 void paint(QPainter& painter, QRect rect) const;
81 void setColor(const QColor& c);
84 void setComparisonColor(const QColor& c);
91 void colorChanged(QColor);
94 void paintEvent(QPaintEvent*);
95 void resizeEvent(QResizeEvent*);
96 void mouseReleaseEvent(QMouseEvent* ev);
97 void mouseMoveEvent(QMouseEvent* ev);
104 #endif // COLOR_PREVIEW_HPP
Show both solid and transparent side by side.
Definition: color_preview.hpp:48
Show current color with no transparency.
Definition: color_preview.hpp:46
#define QCP_EXPORT
Definition: colorpicker_global.hpp:9
Definition: color_preview.hpp:37
show current color with transparency
Definition: color_preview.hpp:47
Display_Mode
Definition: color_preview.hpp:45