marble
MarblePlacemarkModel.cpp
Go to the documentation of this file.
108 return qVariantFromValue( d->m_placemarkContainer->at( index.row() )->style()->iconStyle().icon() );
134 return qVariantFromValue( d->m_placemarkContainer->at( index.row() )->extendedData().value("gmt").value() );
136 return qVariantFromValue( d->m_placemarkContainer->at( index.row() )->extendedData().value("dst").value() );
140 return qVariantFromValue( dynamic_cast<GeoDataObject*>( d->m_placemarkContainer->at( index.row() ) ) );
142 return qVariantFromValue( d->m_placemarkContainer->at( index.row() )->coordinate().longitude( GeoDataCoordinates::Degree ) );
144 return qVariantFromValue( d->m_placemarkContainer->at( index.row() )->coordinate().latitude( GeoDataCoordinates::Degree ) );
203 mDebug() << "addPlacemarks: Time elapsed:" << t.elapsed() << "ms for" << length << "Placemarks.";
218 mDebug() << "removePlacemarks(" << containerName << "): Time elapsed:" << t.elapsed() << "ms for" << length << "Placemarks.";
QString deaccent(const QString &accentString)
Definition: MarblePlacemarkModel_P.h:25
The latitude in degree (for use in QML)
Definition: MarblePlacemarkModel.h:67
void layoutChanged()
void setRoleNames(const QHash< int, QByteArray > &roleNames)
The GeoDataGeometry geometry.
Definition: MarblePlacemarkModel.h:65
MarblePlacemarkModel(QObject *parent=0)
Creates a new place mark model.
Definition: MarblePlacemarkModel.cpp:49
const QHash< int, QByteArray > & roleNames() const
typedef MatchFlags
The pointer to a specific object.
Definition: MarblePlacemarkModel.h:62
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: MarblePlacemarkModel.cpp:82
void beginResetModel()
const char * name() const
bool isValid() const
int elapsed() const
void countChanged()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
QVariant data(const QModelIndex &index, int role) const
Return the data according to the index.
Definition: MarblePlacemarkModel.cpp:97
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
The geo type (e.g. city or mountain)
Definition: MarblePlacemarkModel.h:51
void removePlacemarks(const QString &containerName, int start, int length)
This method is used by the PlacemarkManager to remove place marks from the model. ...
Definition: MarblePlacemarkModel.cpp:206
int rowCount(const QModelIndex &parent=QModelIndex()) const
Return the number of Placemarks in the Model.
Definition: MarblePlacemarkModel.cpp:74
QString toLower() const
void addPlacemarks(int start, int length)
This method is used by the PlacemarkManager to add new place marks to the model.
Definition: MarblePlacemarkModel.cpp:185
void setPlacemarkContainer(QVector< GeoDataPlacemark * > *container)
Definition: MarblePlacemarkModel.cpp:69
The popularity index.
Definition: MarblePlacemarkModel.h:60
The Daylight Saving Time.
Definition: MarblePlacemarkModel.h:64
The GeoDataCoordinates coordinate.
Definition: MarblePlacemarkModel.h:53
The country code.
Definition: MarblePlacemarkModel.h:56
void start()
void endRemoveRows()
void endResetModel()
QString toString() const
QModelIndexList approxMatch(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
Definition: MarblePlacemarkModel.cpp:149
The longitude in degree (for use in QML)
Definition: MarblePlacemarkModel.h:66
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.