kstars
skyobjlistmodel.cpp
Go to the documentation of this file.
20 SkyObjListModel::SkyObjListModel(SkyObjItem *soitem, QObject *parent): QAbstractListModel(parent)
void addSkyObject(SkyObjItem *sobj)
Add a sky-object to the model.
Definition: skyobjlistmodel.cpp:25
SkyObjItem * getSkyObjItem(int index)
Get sky-object item referred to by index.
Definition: skyobjlistmodel.cpp:52
QList< SkyObjItem * > getSkyObjItems()
Get the list of sky-object items in the model.
Definition: skyobjlistmodel.cpp:47
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Overriden method from QAbstractItemModel.
Definition: skyobjlistmodel.cpp:37
QVariant data(int role)
Get data associated with a particular role for the SkyObjItem.
Definition: skyobjitem.cpp:56
int rowCount(const QModelIndex &parent=QModelIndex()) const
Overridden method from QAbstractItemModel.
Definition: skyobjlistmodel.cpp:32
QHash< int, QByteArray > roleNames() const
Create and return a QHash of rolenames for the SkyObjItem.
Definition: skyobjitem.cpp:71
SkyObjListModel(SkyObjItem *soitem=0, QObject *parent=0)
Constructor.
Definition: skyobjlistmodel.cpp:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.