29 styles << qMakePair( Qt::SolidPattern,
tr(
"Solid" ) )
30 << qMakePair( Qt::NoBrush,
tr(
"No Brush" ) )
31 << qMakePair( Qt::HorPattern,
tr(
"Horizontal" ) )
32 << qMakePair( Qt::VerPattern,
tr(
"Vertical" ) )
33 << qMakePair( Qt::CrossPattern,
tr(
"Cross" ) )
34 << qMakePair( Qt::BDiagPattern,
tr(
"BDiagonal" ) )
35 << qMakePair( Qt::FDiagPattern,
tr(
"FDiagonal" ) )
36 << qMakePair( Qt::DiagCrossPattern,
tr(
"Diagonal X" ) )
37 << qMakePair( Qt::Dense1Pattern,
tr(
"Dense 1" ) )
38 << qMakePair( Qt::Dense2Pattern,
tr(
"Dense 2" ) )
39 << qMakePair( Qt::Dense3Pattern,
tr(
"Dense 3" ) )
40 << qMakePair( Qt::Dense4Pattern,
tr(
"Dense 4" ) )
41 << qMakePair( Qt::Dense5Pattern,
tr(
"Dense 5" ) )
42 << qMakePair( Qt::Dense6Pattern,
tr(
"Dense 6" ) )
43 << qMakePair( Qt::Dense7Pattern,
tr(
"Dense 7" ) );
47 for (
int i = 0; i < styles.
count(); i++ )
49 Qt::BrushStyle
style = styles.
at( i ).first;
74 pix.
fill( Qt::transparent );
79 QPen pen( Qt::NoPen );
void fill(const QColor &color)
const T & at(int i) const
void setIconSize(const QSize &size)
QString tr(const char *sourceText, const char *disambiguation, int n)
void setBrushStyle(Qt::BrushStyle style)
void addItem(const QString &text, const QVariant &userData)
void drawRect(const QRectF &rectangle)
const char * name() const
int count(const T &value) const
int toInt(bool *ok) const
void setPen(const QColor &color)
QIcon iconForBrush(Qt::BrushStyle style)
void setBrush(const QBrush &brush)
Qt::BrushStyle brushStyle() const
QVariant itemData(int index, int role) const
QgsBrushStyleComboBox(QWidget *parent=nullptr)
int findData(const QVariant &data, int role, QFlags< Qt::MatchFlag > flags) const
void setCurrentIndex(int index)
bool begin(QPaintDevice *device)