A modified QComboBox allowing to choose a Qt::BrushStyle style. More...
#include <PatternBox.h>
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 [] |
A modified QComboBox allowing to choose a Qt::BrushStyle style.
This is a simple hack on top of the QComboBox class.
| PatternBox::PatternBox | ( | QWidget * | parent = 0 |
) |
Constructor.
| parent | parent widget (only affects placement of the widget) |
References init().
| Qt::BrushStyle PatternBox::brushStyle | ( | int | index | ) | [static] |
| Qt::BrushStyle PatternBox::getSelectedPattern | ( | ) | const |
References patterns.
Referenced by PlotDialog::acceptParams(), EnrichmentDialog::setPatternTo(), and EnrichmentDialog::setRectangleDefaultValues().
| void PatternBox::init | ( | ) | [protected] |
Referenced by PatternBox().
| int PatternBox::patternIndex | ( | const Qt::BrushStyle & | style | ) | [static] |
| void PatternBox::setPattern | ( | const Qt::BrushStyle & | c | ) |
References patterns.
Referenced by PlotDialog::setActiveCurve(), and EnrichmentDialog::setWidget().
const Qt::BrushStyle PatternBox::patterns [static, private] |
{
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
}
Referenced by brushStyle(), getSelectedPattern(), patternIndex(), and setPattern().
1.7.1