OColorPanelButton Class Reference
The OColorPanelButton class provides a button for color selection. More...
#include <colorpopupmenu.h>
Inheritance diagram for OColorPanelButton:


Signals | |
| void | selected (const QColor &) |
| Signal to indicate button has been pressed. | |
Public Member Functions | |
| OColorPanelButton (const QColor &color, QWidget *parent=0, const char *name=0) | |
| Object constructor. | |
| ~OColorPanelButton () | |
| Object destructor. | |
| void | setActive (bool active) |
| Sets button selection state. | |
| void | enterEvent (QEvent *e) |
| Reimplemented for internal reasons. | |
| void | leaveEvent (QEvent *e) |
| Reimplemented for internal reasons. | |
| void | paintEvent (QPaintEvent *e) |
| Reimplemented for internal reasons. | |
| void | mouseReleaseEvent (QMouseEvent *e) |
| Slot executed when button is pressed. | |
Detailed Description
The OColorPanelButton class provides a button for color selection.
- See also:
- OColorPopupMenu
Definition at line 52 of file colorpopupmenu.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Object constructor.
Definition at line 40 of file colorpopupmenu.cpp. References setActive(), and QWidget::setFixedSize(). |
|
|
Object destructor.
Definition at line 49 of file colorpopupmenu.cpp. |
Member Function Documentation
|
|
Sets button selection state.
Definition at line 53 of file colorpopupmenu.cpp. References QFrame::setFrameStyle(). Referenced by OColorPanelButton(). |
|
|
Reimplemented for internal reasons.
Reimplemented from QWidget. Definition at line 64 of file colorpopupmenu.cpp. References QFrame::setFrameStyle(). |
|
|
Reimplemented for internal reasons.
Reimplemented from QWidget. Definition at line 71 of file colorpopupmenu.cpp. References QFrame::setFrameStyle(). |
|
|
Reimplemented for internal reasons.
Reimplemented from QFrame. Definition at line 78 of file colorpopupmenu.cpp. References QPainter::begin(), QPainter::drawRect(), QPainter::end(), QPainter::fillRect(), QFrame::paintEvent(), and QPainter::setPen(). |
|
|
Slot executed when button is pressed.
Reimplemented from QWidget. Definition at line 90 of file colorpopupmenu.cpp. References selected(). |
|
|
Signal to indicate button has been pressed.
Referenced by mouseReleaseEvent(). |
The documentation for this class was generated from the following files:
