wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
The QwwTwoColorIndicator class provides a widget allowing to choose a foreground and background colour. More...
#include <QwwTwoColorIndicator>
This class is not part of the Qt GUI Framework Edition.
Inherits QWidget.
QwwTwoColorIndicator ( QWidget * parent = 0 ) | |
const QColor & | bgColor () const |
bool | dragEnabled () const |
const QColor & | fgColor () const |
bool | isActive () const |
void | setDragEnabled ( bool ) |
void | setActive ( bool ) |
void | setBgColor ( const QColor & b ) |
void | setFgColor ( const QColor & f ) |
void | switchColors () |
void | bgChanged ( const QColor & color ) |
void | bgClicked () |
void | bgPressed () |
void | fgChanged ( const QColor & color ) |
void | fgClicked () |
void | fgPressed () |
virtual void | paintSection ( QPainter * painter, const QRect & rect, const QColor & color ) |
The QwwTwoColorIndicator class provides a widget allowing to choose a foreground and background colour.
This property holds whether mouse click enables colour select.
Access functions:
bool | isActive () const |
void | setActive ( bool ) |
This property holds background colour.
Access functions:
const QColor & | bgColor () const |
void | setBgColor ( const QColor & b ) |
This property holds whether dragging from the widget is enabled.
Access functions:
bool | dragEnabled () const |
void | setDragEnabled ( bool ) |
This property holds foreground colour.
Access functions:
const QColor & | fgColor () const |
void | setFgColor ( const QColor & f ) |
Constructs a two color indicator with a given parent.
This signal is emitted when background colour changes to color.
See also fgChanged().
This signal is emitted when the background button was clicked.
See also fgClicked() and bgPressed().
This signal is emitted when the background button was pressed.
See also fgPressed() and bgClicked().
This signal is emitted when foreground colour changes to color.
See also bgChanged().
This signal is emitted when the foreground button was clicked.
See also bgClicked() and fgPressed().
This signal is emitted when the foreground button was pressed.
See also bgPressed() and fgClicked().
Paints a single section of the indicator.
The method paints to the rectangle rect with color using painter.
Reimplement to modify how the indicator looks.
Swaps foreground and background colors.
Copyright © 2007-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0 |