6#ifndef KOLINESTYLEMODEL_H
7#define KOLINESTYLEMODEL_H
9#include <QAbstractListModel>
19 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
20 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
The line style model managing the style data.
KoLineStyleModel(QObject *parent=0)
bool addCustomStyle(const QVector< qreal > &style)
adds the given style to the model
int setLineStyle(Qt::PenStyle style, const QVector< qreal > &dashes)
selects the given style
QList< QVector< qreal > > m_styles
the added styles
QVector< qreal > m_tempStyle
a temporary added style
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
~KoLineStyleModel() override
bool m_hasTempStyle
state of the temporary style
int rowCount(const QModelIndex &parent=QModelIndex()) const override