|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/MapStyleModel.h>


Public Types | |
| enum | Roles { NameRole = Qt::UserRole , FileRole = Qt::UserRole+1 , PathRole = Qt::UserRole+2 } |
Signals | |
| void | styleChanged () |
| void | loadStyleRequested (QString, std::unordered_map< std::string, bool >) |
Public Member Functions | |
| MapStyleModel () | |
| ~MapStyleModel () override | |
| QString | getStyle () const |
| void | setStyle (const QString &style) |
| Q_INVOKABLE int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Q_INVOKABLE QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
| Q_INVOKABLE Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Q_INVOKABLE int | indexOf (const QString &style) const |
| Q_INVOKABLE QString | file (int i) const |
Properties | |
| QString | style |
| osmscout::MapStyleModel::MapStyleModel | ( | ) |
|
override |
|
override |
| Q_INVOKABLE QString osmscout::MapStyleModel::file | ( | int | i | ) | const |
|
override |
| QString osmscout::MapStyleModel::getStyle | ( | ) | const |
| Q_INVOKABLE int osmscout::MapStyleModel::indexOf | ( | const QString & | style | ) | const |
|
signal |
|
override |
|
inlineoverride |
| void osmscout::MapStyleModel::setStyle | ( | const QString & | style | ) |
|
signal |
|
readwrite |