mkRPG
Public Slots | Signals | Public Member Functions | Properties
BColor Class Reference

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

Detailed Description

The BColor class is a simple frame that offers color selection.


Constructor & Destructor Documentation

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.


Member Function Documentation

const QColor& BColor::color ( ) const

Returns the current color of the selector.

See also:
setColor, setColorQuiet, colorChanged
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.

See also:
color, setColorQuiet
const QString& BColor::name ( ) const

Returns the name of the selector.

See also:
setName, setNameQuiet, nameChanged
void BColor::nameChanged ( const QString &  ) [signal]

This signal is emitted when the name change, when setColor is called.

See also:
name, setNameQuiet
void BColor::setColor ( const QColor &  c) [slot]

Sets the current color.

The signal colorChanged is emitted.

See also:
setColorQuiet, color
void BColor::setColorQuiet ( const QColor &  c) [slot]

Sets the current color.

The signal colorChanged is not emitted.

See also:
setColor, color
void BColor::setName ( const QString &  s) [slot]

Sets the name of the selector.

The signal nameChanged is emitted.

See also:
setNameQuiet, name
void BColor::setNameQuiet ( const QString &  s) [slot]

Sets the name of the selector.

The signal nameChanged is not emitted.

See also:
setName, name

Property Documentation

const QColor & BColor::color [read, write]

The current color that is displayed by the widget

Default value : QColor(0,0,0)

See also:
setColor, setColorQuiet, colorChanged.
const QString & BColor::name [read, write]

The name that is shown as title for the color chooser dialog used for user color definition purpose.

See also:
setName, setNameQuiet, and nameChanged.

The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines