This class is a QPushButton with a single button color and a colored text. More...
#include <ColorPushButton.h>
Public Slots | |
void | setColor (const QColor &color) |
sets the current button color to color | |
void | setColorText (const QString &text, const QColor &color) |
sets the current button text to text with the color color | |
Signals | |
void | colorChanged (const QColor &color) |
is send when the button color changed | |
Public Member Functions | |
ColorPushButton (QWidget *parent) | |
creates the color push button | |
const QColor & | getColor () |
returns the current button color |
This class is a QPushButton with a single button color and a colored text.
ColorPushButton::ColorPushButton | ( | QWidget * | parent | ) |
creates the color push button
void ColorPushButton::colorChanged | ( | const QColor & | color | ) | [signal] |
is send when the button color changed
const QColor& ColorPushButton::getColor | ( | ) | [inline] |
returns the current button color
void ColorPushButton::setColor | ( | const QColor & | color | ) | [slot] |
sets the current button color to color
void ColorPushButton::setColorText | ( | const QString & | text, | |
const QColor & | color | |||
) | [slot] |
sets the current button text to text with the color color