Marble
MarblePlacemarkModel.cpp
119 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->style()->iconStyle().icon() );
121 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->style()->iconStyle().iconPath() );
147 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->extendedData().value(QStringLiteral("gmt")).value() );
149 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->extendedData().value(QStringLiteral("dst")).value() );
153 return QVariant::fromValue( dynamic_cast<GeoDataObject*>( d->m_placemarkContainer->at( index.row() ) ) );
155 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->coordinate().longitude( GeoDataCoordinates::Degree ) );
157 return QVariant::fromValue( d->m_placemarkContainer->at( index.row() )->coordinate().latitude( GeoDataCoordinates::Degree ) );
216 mDebug() << "addPlacemarks: Time elapsed:" << t.elapsed() << "ms for" << length << "Placemarks.";
DisplayRole
void beginRemoveRows(const QModelIndex &parent, int first, int last)
QVariant fromValue(const T &value)
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
QHash< int, QByteArray > roleNames() const override
Return the supported role names.
Definition: MarblePlacemarkModel.cpp:103
QVariant data(const QModelIndex &index, int role) const override
Return the data according to the index.
Definition: MarblePlacemarkModel.cpp:108
Q_SCRIPTABLE Q_NOREPLY void start()
void addPlacemarks(int start, int length)
This method is used by the PlacemarkManager to add new place marks to the model.
Definition: MarblePlacemarkModel.cpp:198
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
MarblePlacemarkModel(QObject *parent=nullptr)
Creates a new place mark model.
Definition: MarblePlacemarkModel.cpp:49
void beginResetModel()
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Return the number of Placemarks in the Model.
Definition: MarblePlacemarkModel.cpp:87
qint64 elapsed() const const
bool isValid() const const
int row() const const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
QString toLower() const const
void endRemoveRows()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void endResetModel()
This class represents a model of all place marks which are currently available through a given Placem...
Definition: MarblePlacemarkModel.h:30
typedef MatchFlags
~MarblePlacemarkModel() override
Destroys the place mark model.
Definition: MarblePlacemarkModel.cpp:77
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:219
QObject * parent() const const
void start()
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:09:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:09:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.