Marble
MarblePlacemarkModel.cpp
112 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->style()->iconStyle().icon());
114 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->style()->iconStyle().iconPath());
140 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->extendedData().value(QStringLiteral("gmt")).value());
142 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->extendedData().value(QStringLiteral("dst")).value());
146 return QVariant::fromValue(dynamic_cast<GeoDataObject *>(d->m_placemarkContainer->at(index.row())));
148 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->coordinate().longitude(GeoDataCoordinates::Degree));
150 return QVariant::fromValue(d->m_placemarkContainer->at(index.row())->coordinate().latitude(GeoDataCoordinates::Degree));
155QModelIndexList MarblePlacemarkModel::approxMatch(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const
203 mDebug() << "addPlacemarks: Time elapsed:" << t.elapsed() << "ms for" << length << "Placemarks.";
216 mDebug() << "removePlacemarks(" << containerName << "): Time elapsed:" << t.elapsed() << "ms for" << length << "Placemarks.";
This class represents a model of all place marks which are currently available through a given Placem...
Definition MarblePlacemarkModel.h:30
QHash< int, QByteArray > roleNames() const override
Return the supported role names.
Definition MarblePlacemarkModel.cpp:75
void addPlacemarks(int start, int length)
This method is used by the PlacemarkManager to add new place marks to the model.
Definition MarblePlacemarkModel.cpp:186
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Return the number of Placemarks in the Model.
Definition MarblePlacemarkModel.cpp:59
MarblePlacemarkModel(QObject *parent=nullptr)
Creates a new place mark model.
Definition MarblePlacemarkModel.cpp:43
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
~MarblePlacemarkModel() override
Destroys the place mark model.
Definition MarblePlacemarkModel.cpp:49
QVariant data(const QModelIndex &index, int role) const override
Return the data according to the index.
Definition MarblePlacemarkModel.cpp:101
Q_SCRIPTABLE Q_NOREPLY void start()
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void beginResetModel()
void endRemoveRows()
void endResetModel()
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
qint64 elapsed() const const
void start()
bool isValid() const const
int row() const const
Q_EMITQ_EMIT
QObject * parent() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QString toLower() const const
DisplayRole
typedef MatchFlags
QVariant fromValue(T &&value)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.