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
bool contains(const Key &key) const
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
void removeAt(int i)
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
bool isNull() const
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
int indexOf(const T &value, int from) const
void slotEntryChanged(KNS::Entry *entry)
Definition: knewstuff2/ui/itemsmodel.cpp:147
int count(const T &value) const
KTranslatable payload() const
Retrieve the file name of the object.
Definition: knewstuff2/core/entry.cpp:161
void append(const T &value)
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
int width() const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
QString license() const
Retrieve the license name of the object.
Definition: knewstuff2/core/entry.cpp:111
bool isEmpty() const
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
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
void beginInsertRows(const QModelIndex &parent, int first, int last)
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
int height() const
iterator insert(const Key &key, const T &value)
void endRemoveRows()
the name of the author of the entry
Definition: knewstuff2/ui/itemsmodel.h:46
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.