QtColorButton Class

(Utils::QtColorButton)

Properties

Public Functions

QtColorButton(QWidget *parent = nullptr)
~QtColorButton() override
QColor color() const
bool isAlphaAllowed() const
bool isBackgroundCheckered() const
void setAlphaAllowed(bool allowed)
void setBackgroundCheckered(bool checkered)

Public Slots

void setColor(const QColor &color)

Signals

void colorChanged(const QColor &color)

Protected Functions

void dragEnterEvent(QDragEnterEvent *event) override
void dragLeaveEvent(QDragLeaveEvent *event) override
void dropEvent(QDropEvent *event) override
void mouseMoveEvent(QMouseEvent *event) override
void mousePressEvent(QMouseEvent *event) override
void paintEvent(QPaintEvent *event) override

Property Documentation

alphaAllowed : bool

Access functions:

bool isAlphaAllowed() const
void setAlphaAllowed(bool allowed)

backgroundCheckered : bool

Access functions:

bool isBackgroundCheckered() const
void setBackgroundCheckered(bool checkered)

color : QColor

Access functions:

QColor color() const
void setColor(const QColor &color)

Member Function Documentation

QtColorButton::QtColorButton(QWidget *parent = nullptr)

Default constructs an instance of QtColorButton.

QtColorButton::~QtColorButton()

Destroys the instance of QtColorButton.

[signal] void QtColorButton::colorChanged(const QColor &color)

[protected] void QtColorButton::dragEnterEvent(QDragEnterEvent *event)

[protected] void QtColorButton::dragLeaveEvent(QDragLeaveEvent *event)

[protected] void QtColorButton::dropEvent(QDropEvent *event)

[protected] void QtColorButton::mouseMoveEvent(QMouseEvent *event)

[protected] void QtColorButton::mousePressEvent(QMouseEvent *event)

[protected] void QtColorButton::paintEvent(QPaintEvent *event)