marble
MapThemeModel.cpp
Go to the documentation of this file.
23 m_themeManager( new Marble::MapThemeManager( this ) ), m_mapThemeFilters( MapThemeModel::AnyTheme )
97 if ( m_mapThemeFilters & MapThemeModel::Terrestrial && themeId.startsWith( QLatin1String( "earth/" ) ) ) {
101 if ( m_mapThemeFilters & MapThemeModel::Extraterrestrial && !themeId.startsWith( QLatin1String( "earth/" ) ) ) {
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
QStandardItemModel * mapThemeModel()
Provides a model of the locally existing themes.
Definition: MapThemeManager.cpp:319
void clear()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
void mapThemeFilterChanged()
void setRoleNames(const QHash< int, QByteArray > &roleNames)
virtual void setSourceModel(QAbstractItemModel *sourceModel)
int count() const
const QHash< int, QByteArray > & roleNames() const
Provides access to all map themes installed locally.
Definition: DeclarativeMapThemeManager.h:40
virtual int rowCount(const QModelIndex &parent) const
void beginResetModel()
const char * name() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static GeoSceneDocument * loadMapTheme(const QString &mapThemeStringID)
Returns the map theme as a GeoSceneDocument object.
Definition: MapThemeManager.cpp:155
void setMapThemeFilter(MapThemeFilters filters)
Definition: MapThemeModel.cpp:77
A container for features parsed from the DGML file.
Definition: GeoSceneDocument.h:44
bool contains(const T &value) const
Definition: MapThemeModel.h:18
QAbstractItemModel * sourceModel() const
QVariant data(int role) const
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
Definition: MapThemeModel.cpp:85
QStringList mapThemeIds() const
Returns a list of all locally available map theme IDs.
Definition: MapThemeManager.cpp:138
void endResetModel()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Q_INVOKABLE MapThemeFilters mapThemeFilter() const
QString toString() const
Definition: MapThemeModel.h:29
Q_INVOKABLE int indexOf(const QString &id) const
Definition: MapThemeModel.cpp:62
Definition: MapThemeModel.h:27
virtual QVariant data(const QModelIndex &index, int role) const
Definition: MapThemeModel.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.