Kstars
skyobjlistmodel.h
15 * Represents a model for the list of interesting sky-objects to be displayed in the QML interface.
Represents a model for the list of interesting sky-objects to be displayed in the QML interface.
Definition skyobjlistmodel.h:20
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Overridden method from QAbstractItemModel.
Definition skyobjlistmodel.cpp:38
SkyObjItem * getSkyObjItem(int index)
Get sky-object item referred to by index.
Definition skyobjlistmodel.cpp:60
QHash< int, QByteArray > roleNames() const override
Create and return a QHash<int, QByteArray> of rolenames for the SkyObjItem.
Definition skyobjlistmodel.cpp:20
SkyObjListModel(SkyObjItem *soitem=nullptr, QObject *parent=nullptr)
Constructor.
Definition skyobjlistmodel.cpp:12
QList< SkyObjItem * > getSkyObjItems()
Get the list of sky-object items in the model.
Definition skyobjlistmodel.cpp:55
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Overridden method from QAbstractItemModel.
Definition skyobjlistmodel.cpp:45
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
Q_OBJECTQ_OBJECT
QObject * parent() const const
DisplayRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.