KNewStuff
#include <itemsmodel.h>
Public Types | |
| enum | EntryRoles { kNameRole = Qt::UserRole , kCategory , kAuthorName , kAuthorEmail , kAuthorJabber , kAuthorHomepage , kLicense , kSummary , kVersion , kRelease , kReleaseDate , kPayload , kPreview , kPreviewPixmap , kLargePreviewPixmap , kRating , kDownloads , kStatus } |
Public Slots | |
| void | slotEntryChanged (KNS::Entry *entry) |
Public Member Functions | |
| ItemsModel (QObject *parent=NULL, bool hasWebService=false) | |
| ~ItemsModel () | |
| void | addEntry (Entry *entry) |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| KNS::Entry * | entryForIndex (const QModelIndex &index) const |
| bool | hasPreviewImages () const |
| bool | hasWebService () const |
| void | removeEntry (Entry *entry) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Detailed Description
Definition at line 33 of file knewstuff2/ui/itemsmodel.h.
Member Enumeration Documentation
◆ EntryRoles
Definition at line 40 of file knewstuff2/ui/itemsmodel.h.
Constructor & Destructor Documentation
◆ ItemsModel()
|
explicit |
Definition at line 26 of file knewstuff2/ui/itemsmodel.cpp.
◆ ~ItemsModel()
| KNS::ItemsModel::~ItemsModel | ( | ) |
Definition at line 31 of file knewstuff2/ui/itemsmodel.cpp.
Member Function Documentation
◆ addEntry()
| void KNS::ItemsModel::addEntry | ( | Entry * | entry | ) |
Definition at line 116 of file knewstuff2/ui/itemsmodel.cpp.
◆ data()
| QVariant KNS::ItemsModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole ) const |
Definition at line 40 of file knewstuff2/ui/itemsmodel.cpp.
◆ entryForIndex()
| KNS::Entry * KNS::ItemsModel::entryForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 108 of file knewstuff2/ui/itemsmodel.cpp.
◆ hasPreviewImages()
| bool KNS::ItemsModel::hasPreviewImages | ( | ) | const |
Definition at line 178 of file knewstuff2/ui/itemsmodel.cpp.
◆ hasWebService()
| bool KNS::ItemsModel::hasWebService | ( | ) | const |
Definition at line 183 of file knewstuff2/ui/itemsmodel.cpp.
◆ removeEntry()
| void KNS::ItemsModel::removeEntry | ( | Entry * | entry | ) |
Definition at line 136 of file knewstuff2/ui/itemsmodel.cpp.
◆ rowCount()
| int KNS::ItemsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 35 of file knewstuff2/ui/itemsmodel.cpp.
◆ slotEntryChanged
|
slot |
Definition at line 147 of file knewstuff2/ui/itemsmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.16.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.