1#ifndef CLICKABLE_COLOR_PREVIEW_H
2#define CLICKABLE_COLOR_PREVIEW_H
void SetColor(const QColor &color)
Sets the background color to be displayed by the preview widget. Updates the widget's palette and tri...
Definition clickable_color_preview.cpp:12
ClickableColorPreview(QWidget *parent=nullptr)
Constructs a ClickableColorPreview widget. Sets a fixed size, enables the pointing hand cursor,...
Definition clickable_color_preview.cpp:6
void paintEvent(QPaintEvent *event) override
Overridden paint event handler. Draws the widget's appearance. Fills the background with the color se...
Definition clickable_color_preview.cpp:31
void clicked()
Emitted when the widget is clicked with the left mouse button.
void mousePressEvent(QMouseEvent *event) override
Overridden mouse press event handler. Emits the clicked() signal if the left mouse button is pressed.
Definition clickable_color_preview.cpp:24