#include <PatternBox.h>
This is a simple hack on top of the QComboBox class.
Public Member Functions | |
| Qt::BrushStyle | getSelectedPattern () const |
| PatternBox (QWidget *parent=0) | |
| Constructor. | |
| void | setPattern (const Qt::BrushStyle &c) |
Static Public Member Functions | |
| static Qt::BrushStyle | brushStyle (int index) |
| static int | patternIndex (const Qt::BrushStyle &style) |
Protected Member Functions | |
| void | init () |
Static Private Attributes | |
| static const Qt::BrushStyle | patterns [] |
|
|
Constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: {
Qt::SolidPattern,
Qt::HorPattern,
Qt::VerPattern,
Qt::CrossPattern,
Qt::BDiagPattern,
Qt::FDiagPattern,
Qt::DiagCrossPattern,
Qt::Dense1Pattern,
Qt::Dense2Pattern,
Qt::Dense3Pattern,
Qt::Dense4Pattern,
Qt::Dense5Pattern,
Qt::Dense6Pattern,
Qt::Dense7Pattern,
Qt::NoBrush
}
|
1.4.6