1#ifndef OSMSCOUT_CLIENT_QT_MAPSTYLEMODEL_H
2#define OSMSCOUT_CLIENT_QT_MAPSTYLEMODEL_H
24#include <QAbstractListModel>
61 Q_INVOKABLE
int inline
rowCount(const QModelIndex &parent = QModelIndex())
const override
64 return stylesheets.size();
67 Q_INVOKABLE QVariant
data(
const QModelIndex &index,
int role)
const override;
69 Q_INVOKABLE Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
72 Q_INVOKABLE QString
file(
int i)
const;
75 QList<QFileInfo> stylesheets;
#define OSMSCOUT_CLIENT_QT_API
Definition ClientQtImportExport.h:45
void setStyle(const QString &style)
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Q_INVOKABLE QString file(int i) const
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition MapStyleModel.h:61
void loadStyleRequested(QString, std::unordered_map< std::string, bool >)
QHash< int, QByteArray > roleNames() const override
Q_INVOKABLE int indexOf(const QString &style) const
QString style
Definition MapStyleModel.h:38
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Roles
Definition MapStyleModel.h:48
@ FileRole
Definition MapStyleModel.h:50
@ PathRole
Definition MapStyleModel.h:51
@ NameRole
Definition MapStyleModel.h:49
Definition StyleModule.h:37