|
mkRPG
|
The BColor class is a simple frame that offers color selection. More...
#include <bcolor.h>
Public Slots | |
| void | setColor (const QColor &c) |
| void | setColorQuiet (const QColor &c) |
| void | setName (const QString &s) |
| void | setNameQuiet (const QString &s) |
Signals | |
| void | colorChanged (const QColor &) |
| void | nameChanged (const QString &) |
Public Member Functions | |
| BColor (QWidget *parent=0) | |
| BColor (QColor c, QWidget *parent=0) | |
| const QString & | name () const |
| const QColor & | color () const |
Properties | |
| QColor | color |
| QString | name |
The BColor class is a simple frame that offers color selection.
| BColor::BColor | ( | QWidget * | parent = 0 | ) | [explicit] |
Constructs a new BColor object, with white as current color.
| BColor::BColor | ( | QColor | c, |
| QWidget * | parent = 0 |
||
| ) | [explicit] |
Constructs a new BColor object and sets the color to c.
| const QColor& BColor::color | ( | ) | const |
Returns the current color of the selector.
| void BColor::colorChanged | ( | const QColor & | ) | [signal] |
This signal is emitted when the color change, both when the user edit it or when setColor is called.
| const QString& BColor::name | ( | ) | const |
Returns the name of the selector.
| void BColor::nameChanged | ( | const QString & | ) | [signal] |
This signal is emitted when the name change, when setColor is called.
| void BColor::setColor | ( | const QColor & | c | ) | [slot] |
| void BColor::setColorQuiet | ( | const QColor & | c | ) | [slot] |
| void BColor::setName | ( | const QString & | s | ) | [slot] |
| void BColor::setNameQuiet | ( | const QString & | s | ) | [slot] |
const QColor & BColor::color [read, write] |
The current color that is displayed by the widget
Default value : QColor(0,0,0)
const QString & BColor::name [read, write] |
The name that is shown as title for the color chooser dialog used for user color definition purpose.
1.7.6.1