|
Krita Source Code Documentation
|
The line style model managing the style data. More...
#include <KoLineStyleModel_p.h>
Inheritance diagram for KoLineStyleModel:Public Member Functions | |
| bool | addCustomStyle (const QVector< qreal > &style) |
| adds the given style to the model | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| KoLineStyleModel (QObject *parent=0) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | setLineStyle (Qt::PenStyle style, const QVector< qreal > &dashes) |
| selects the given style | |
| ~KoLineStyleModel () override | |
Private Attributes | |
| bool | m_hasTempStyle |
| state of the temporary style | |
| QList< QVector< qreal > > | m_styles |
| the added styles | |
| QVector< qreal > | m_tempStyle |
| a temporary added style | |
The line style model managing the style data.
Definition at line 14 of file KoLineStyleModel_p.h.
|
explicit |
Definition at line 11 of file KoLineStyleModel.cpp.
References m_styles.
|
inlineoverride |
Definition at line 18 of file KoLineStyleModel_p.h.
| bool KoLineStyleModel::addCustomStyle | ( | const QVector< qreal > & | style | ) |
adds the given style to the model
Definition at line 54 of file KoLineStyleModel.cpp.
References m_styles.
|
override |
Definition at line 27 of file KoLineStyleModel.cpp.
References m_hasTempStyle, m_styles, and m_tempStyle.
|
override |
Definition at line 22 of file KoLineStyleModel.cpp.
References m_hasTempStyle, and m_styles.
| int KoLineStyleModel::setLineStyle | ( | Qt::PenStyle | style, |
| const QVector< qreal > & | dashes ) |
selects the given style
Definition at line 63 of file KoLineStyleModel.cpp.
References m_hasTempStyle, m_styles, and m_tempStyle.
|
private |
state of the temporary style
Definition at line 29 of file KoLineStyleModel_p.h.
the added styles
Definition at line 27 of file KoLineStyleModel_p.h.
|
private |
a temporary added style
Definition at line 28 of file KoLineStyleModel_p.h.