#include <color_button.h>
Public Slots | |
void | setColor (const QColor &color) |
Signals | |
void | colorChanged (const QColor &color) |
void | colorEdited (const QColor &color) |
Public Member Functions | |
const QColor & | color () const |
ColorButton (QWidget *parent=0) | |
Private Slots | |
void | handleClicked () |
Private Attributes | |
QColor | color_ |
The ColorButton widget provides a color display that the user can click on to select a new color. You can use this widget in Qt Designer by placing a QPushButton and promoting it to a custom widget. You have to setup the promoted widget once in each .ui file:
Base class name: QPushButton Promoted class name: mapviz::ColorButton Include file name: mapviz/color_button.h Global Include: True
Definition at line 49 of file color_button.h.
mapviz::ColorButton::ColorButton | ( | QWidget * | parent = 0 | ) |
Definition at line 36 of file color_button.cpp.
const QColor& mapviz::ColorButton::color | ( | ) | const [inline] |
Definition at line 58 of file color_button.h.
void mapviz::ColorButton::colorChanged | ( | const QColor & | color | ) | [signal] |
void mapviz::ColorButton::colorEdited | ( | const QColor & | color | ) | [signal] |
void mapviz::ColorButton::handleClicked | ( | ) | [private, slot] |
Definition at line 64 of file color_button.cpp.
void mapviz::ColorButton::setColor | ( | const QColor & | color | ) | [slot] |
Definition at line 45 of file color_button.cpp.
QColor mapviz::ColorButton::color_ [private] |
Definition at line 51 of file color_button.h.