|
Qt Utilities 6.22.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
The ColorButton class is used by PaletteEditor. More...
#include <colorbutton.h>
Public Slots | |
| void | setColor (const QColor &color) |
Signals | |
| void | colorChanged (const QColor &color) |
Public Member Functions | |
| ColorButton (QWidget *parent=nullptr) | |
| ~ColorButton () override | |
| bool | isBackgroundCheckered () const |
| void | setBackgroundCheckered (bool checkered) |
| QColor | color () const |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragLeaveEvent (QDragLeaveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
Properties | |
| QColor | color |
| bool | backgroundCheckered |
The ColorButton class is used by PaletteEditor.
This is taken from qttools/src/shared/qtgradienteditor/qtcolorbutton.h.
Definition at line 15 of file colorbutton.h.
| QtUtilities::ColorButton::ColorButton | ( | QWidget * | parent = nullptr | ) |
Definition at line 82 of file colorbutton.cpp.
|
override |
Definition at line 96 of file colorbutton.cpp.
| QColor QtUtilities::ColorButton::color | ( | ) | const |
Definition at line 108 of file colorbutton.cpp.
|
signal |
|
overrideprotected |
Definition at line 187 of file colorbutton.cpp.
|
overrideprotected |
Definition at line 199 of file colorbutton.cpp.
|
overrideprotected |
Definition at line 206 of file colorbutton.cpp.
| bool QtUtilities::ColorButton::isBackgroundCheckered | ( | ) | const |
Definition at line 121 of file colorbutton.cpp.
|
overrideprotected |
Definition at line 168 of file colorbutton.cpp.
|
overrideprotected |
Definition at line 159 of file colorbutton.cpp.
|
overrideprotected |
Definition at line 126 of file colorbutton.cpp.
| void QtUtilities::ColorButton::setBackgroundCheckered | ( | bool | checkered | ) |
Definition at line 113 of file colorbutton.cpp.
|
slot |
Definition at line 100 of file colorbutton.cpp.
|
readwrite |
Definition at line 18 of file colorbutton.h.
|
readwrite |
Definition at line 17 of file colorbutton.h.