QtColorButton Class

(Utils::QtColorButton)
Inherits: QToolButton

Properties

Public Functions

QtColorButton(QWidget *parent = 0)
~QtColorButton()
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)

Reimplemented Protected Functions

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

Additional Inherited Members

  • 5 static public members inherited from QWidget
  • 12 protected functions inherited from QToolButton
  • 14 protected functions inherited from QAbstractButton
  • 35 protected functions inherited from QWidget
  • 1 protected slot inherited from QWidget

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 = 0)

Default constructs an instance of QtColorButton.

QtColorButton::~QtColorButton()

Destroys the instance of QtColorButton.

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

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

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

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

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

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

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