marble
RouteRequestModel.cpp
Go to the documentation of this file.
55 QVariant RouteRequestModel::headerData ( int section, Qt::Orientation orientation, int role ) const
69 case LongitudeRole: return m_request->at( index.row() ).longitude( Marble::GeoDataCoordinates::Degree );
70 case LatitudeRole: return m_request->at( index.row() ).latitude( Marble::GeoDataCoordinates::Degree );
131 m_request->setPosition( index, Marble::GeoDataCoordinates( longitude, latitude, 0.0, Marble::GeoDataCoordinates::Degree ) );
bool insertRow(int row, const QModelIndex &parent)
int rowCount(const QModelIndex &parent=QModelIndex()) const
Overload of QAbstractListModel.
Definition: RouteRequestModel.cpp:39
void layoutChanged()
void setRoleNames(const QHash< int, QByteArray > &roleNames)
This file contains the headers for MarbleModel.
bool removeRow(int row, const QModelIndex &parent)
const QHash< int, QByteArray > & roleNames() const
Definition: Routing.qml:15
bool isValid() const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
void beginInsertRows(const QModelIndex &parent, int first, int last)
void routingChanged()
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Overload of QAbstractListModel.
Definition: RouteRequestModel.cpp:55
void setPosition(int index, const GeoDataCoordinates &position, const QString &name=QString())
Change the value of the element at the given position.
Definition: RouteRequest.cpp:249
void endRemoveRows()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Overload of QAbstractListModel.
Definition: RouteRequestModel.cpp:64
void setPosition(int index, qreal longitude, qreal latitude)
Definition: RouteRequestModel.cpp:128
Routing * routing()
GeoDataCoordinates at(int index) const
Accessor for the n-th position.
Definition: RouteRequest.cpp:149
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.