Marble
CelestialSortFilterProxyModel.cpp
34 return QString(QLatin1String(" ") + newOne + QLatin1String(" (") + tr("moon") + QLatin1Char(')'));
47 // TODO: create priority on the model side (Planet Class) by taking the distance to the "home planet/home star" into account
102 bool CelestialSortFilterProxyModel::lessThan( const QModelIndex &left, const QModelIndex &right ) const
QTextStream & right(QTextStream &stream)
bool contains(const Key &key) const const
DisplayRole
int column() const const
QTextStream & left(QTextStream &stream)
void push_back(const T &value)
bool contains(const T &value) const 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:22
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QString toLower() const const
sourceModel
virtual QVariant data(const QModelIndex &index, int role) const const override
QString tr(const char *sourceText, const char *disambiguation, int n)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.