KNewStuff
knewstuff2/ui/itemsmodel.cpp
Go to the documentation of this file.
161 // if the preview is really big, first scale fast to a smaller size, then smooth to desired size
163 image = image.scaled(2 * kPreviewWidth, 2 * kPreviewHeight, Qt::KeepAspectRatio, Qt::FastTransformation);
165 m_previewImages.insert(url, image.scaled(kPreviewWidth, kPreviewHeight, Qt::KeepAspectRatio, Qt::SmoothTransformation));
QString jabber() const
Retrieve the author's jabber address.
Definition: knewstuff2/core/author.cpp:78
the number of downloads for the entry
Definition: knewstuff2/ui/itemsmodel.h:74
the e-mail address of the author
Definition: knewstuff2/ui/itemsmodel.h:48
ItemsModel(QObject *parent=NULL, bool hasWebService=false)
Definition: knewstuff2/ui/itemsmodel.cpp:26
QDate releaseDate() const
Retrieve the date of the object's publication.
Definition: knewstuff2/core/entry.cpp:151
QString version() const
Retrieve the version string of the object.
Definition: knewstuff2/core/entry.cpp:131
QString email() const
Retrieve the author's email address.
Definition: knewstuff2/core/author.cpp:68
int release() const
Retrieve the release number of the object.
Definition: knewstuff2/core/entry.cpp:141
KTranslatable summary() const
Retrieve a short description about the object.
Definition: knewstuff2/core/entry.cpp:121
QString category() const
Retrieve the category of the data object.
Definition: knewstuff2/core/entry.cpp:91
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KTranslatable name() const
Retrieve the name of the data object.
Definition: knewstuff2/core/entry.cpp:81
bool hasPreviewImages() const
Definition: knewstuff2/ui/itemsmodel.cpp:178
void slotEntryChanged(KNS::Entry *entry)
Definition: knewstuff2/ui/itemsmodel.cpp:147
KTranslatable payload() const
Retrieve the file name of the object.
Definition: knewstuff2/core/entry.cpp:161
QString license() const
Retrieve the license name of the object.
Definition: knewstuff2/core/entry.cpp:111
void removeEntry(Entry *entry)
Definition: knewstuff2/ui/itemsmodel.cpp:136
the unscaled preview image
Definition: knewstuff2/ui/itemsmodel.h:70
QString representation() const
Returns the string which matches most closely the current language.
Definition: ktranslatable.cpp:64
int downloads() const
Retrieve the download count for the object, which has been determined by its hosting sites and thus m...
Definition: knewstuff2/core/entry.cpp:191
bool hasWebService() const
Definition: knewstuff2/ui/itemsmodel.cpp:183
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: knewstuff2/ui/itemsmodel.cpp:35
KNS::Entry * entryForIndex(const QModelIndex &index) const
Definition: knewstuff2/ui/itemsmodel.cpp:108
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: knewstuff2/ui/itemsmodel.cpp:40
the name of the author of the entry
Definition: knewstuff2/ui/itemsmodel.h:46
KTranslatable preview() const
Retrieve the file name of an image containing a preview of the object.
Definition: knewstuff2/core/entry.cpp:171
int rating() const
Retrieve the rating for the object, which has been determined by its users and thus might change over...
Definition: knewstuff2/core/entry.cpp:181
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 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:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.