Marble
SearchBackend.cpp
50 m_completionModel->removePlacemarks(QStringLiteral("Completion model"), 0, m_completionModel->rowCount());
62 QVariant data = m_marbleQuickItem->model()->placemarkModel()->data(index, MarblePlacemarkModel::ObjectPointerRole);
103 QVariant data = m_placemarkModel->data(m_placemarkModel->index(placemarkIndex), MarblePlacemarkModel::ObjectPointerRole);
This file contains the headers for MarbleModel.
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:49
This class represents a model of all place marks which are currently available through a given Placem...
Definition MarblePlacemarkModel.h:31
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
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
QVariant data(const QModelIndex &index, int role) const override
Return the data according to the index.
Definition MarblePlacemarkModel.cpp:108
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const const=0
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
QAbstractItemModel * completionModel() const const
completionPrefix
void setCompletionRole(int role)
void setModel(QAbstractItemModel *model)
void append(QList< T > &&value)
bool isEmpty() const const
qsizetype size() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
void clear()
bool isEmpty() const const
qsizetype size() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
CaseInsensitive
DisplayRole
bool isValid() 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.