Kstars
skyobjlistmodel.cpp
12SkyObjListModel::SkyObjListModel(SkyObjItem *soitem, QObject *parent) : QAbstractListModel(parent)
QVariant data(int role)
Get data associated with a particular role for the SkyObjItem.
Definition skyobjitem.cpp:57
QString getName() const
Get name of sky-object associated with the SkyObjItem.
Definition skyobjitem.h:69
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
void beginInsertRows(const QModelIndex &parent, int first, int last)
void endInsertRows()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void append(QList< T > &&value)
void clear()
qsizetype size() const const
int row() const const
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.