Marble
CelestialSortFilterProxyModel.cpp
34 return QString(QLatin1StringView(" ") + newOne + QLatin1StringView(" (") + tr("moon") + QLatin1Char(')'));
46 // TODO: create priority on the model side (Planet Class) by taking the distance to the "home planet/home star" into account
101bool CelestialSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
A small trick to change names for dwarfs and moons.
Definition CelestialSortFilterProxyModel.cpp:26
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
sourceModel
bool contains(const AT &value) const const
void push_back(parameter_type value)
bool contains(const Key &key) const const
int column() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
virtual QVariant data(const QModelIndex &index, int role) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const const
QChar * data()
QString toLower() const const
DisplayRole
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.