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.";
231 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:31
QHash< int, QByteArray > roleNames() const override
Return the supported role names.
Definition MarblePlacemarkModel.cpp:103
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
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Return the number of Placemarks in the Model.
Definition MarblePlacemarkModel.cpp:87
MarblePlacemarkModel(QObject *parent=nullptr)
Creates a new place mark model.
Definition MarblePlacemarkModel.cpp:49
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
~MarblePlacemarkModel() override
Destroys the place mark model.
Definition MarblePlacemarkModel.cpp:77
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()
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
bool isValid() const const
int row() const const
QObject * parent() const const
T qobject_cast(QObject *object)
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 Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.