30 styles << qMakePair( Qt::SolidLine,
tr(
"Solid Line" ) )
31 << qMakePair( Qt::NoPen,
tr(
"No Pen" ) )
32 << qMakePair( Qt::DashLine,
tr(
"Dash Line" ) )
33 << qMakePair( Qt::DotLine,
tr(
"Dot Line" ) )
34 << qMakePair( Qt::DashDotLine,
tr(
"Dash Dot Line" ) )
35 << qMakePair( Qt::DashDotDotLine,
tr(
"Dash Dot Dot Line" ) );
39 for (
int i = 0; i < styles.
count(); i++ )
41 Qt::PenStyle
style = styles.
at( i ).first;
62 pix.
fill( Qt::transparent );
void setPenStyle(Qt::PenStyle style)
static QString defaultThemePath()
Returns the path to the default theme directory.
void fill(const QColor &color)
void setPenCapStyle(Qt::PenCapStyle style)
const T & at(int i) const
void setIconSize(const QSize &size)
void drawLine(const QLineF &line)
QString tr(const char *sourceText, const char *disambiguation, int n)
void addItem(const QString &text, const QVariant &userData)
const char * name() const
QgsPenJoinStyleComboBox(QWidget *parent=nullptr)
int count(const T &value) const
int toInt(bool *ok) const
void setPen(const QColor &color)
Qt::PenJoinStyle penJoinStyle() const
void setPenJoinStyle(Qt::PenJoinStyle style)
QVariant itemData(int index, int role) const
QIcon iconForPen(Qt::PenStyle style)
Qt::PenCapStyle penCapStyle() const
int findData(const QVariant &data, int role, QFlags< Qt::MatchFlag > flags) const
QgsPenCapStyleComboBox(QWidget *parent=nullptr)
bool begin(QPaintDevice *device)
Qt::PenStyle penStyle() const
QgsPenStyleComboBox(QWidget *parent=nullptr)