KNewStuff
knewstuff2/ui/itemsview.cpp
Go to the documentation of this file.
262 //statusIcon = "<img src='" + loader->iconPath("network-server", -KIconLoader::SizeSmall) + "' />";
268 statusIcon = "<img src='" + loader->iconPath("software-update-available", -KIconLoader::SizeSmall) + "' />";
284 QString starsString = "<div style='width: " + QString::number(starPixels) + "px; background-image: url(" + starIconPath + "); background-repeat: repeat-x;'> </div>";
286 starsString = "<div style='width: " + QString::number(grayPixels) + "px;background-image: url(" + starBgIconPath + "); background-repeat: repeat-x;'>" + starsString + " </div>";
338 s += ".itemBox { background-color: white; color: black; width: 100%; border-bottom: 1px solid gray; margin: 0px 0px; }";
339 s += ".itemBox:hover { background-color: " + hoverBackground + "; color: " + hoverColor + "; }";
346 s += ".leftProgressBar { left: 1px; width: 0px; top: 1px; height: 8px; background-color: red; }";
348 s += ".contentsHeader { width: 100%; font-size: 120%; font-weight: bold; border-bottom: 1px solid #c8c8c8; }";
351 s += ".star { width: 0px; height: 24px; background-image: url(" + starIconPath + "); background-repeat: repeat-x; }";
352 s += ".starbg { width: 110px; height: 24px; background-image: url(" + starBgIconPath + "); background-repeat: repeat-x; }";
QString i18n(const char *text)
static bool DownloadsSorter(const Entry *e1, const Entry *e2)
Definition: knewstuff2/ui/itemsview.cpp:88
ulong toULong(bool *ok, int base) const
void setStyleSheet(const QString &styleSheet)
void setEngine(DxsEngine *engine)
Definition: knewstuff2/ui/itemsview.cpp:108
void setProvider(const Provider *provider, const Feed *feed)
set the provider to show entries from with the feed also
Definition: knewstuff2/ui/itemsview.cpp:113
static KIconLoader * global()
Definition: knewstuff2/core/entry.h:291
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
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
void insertLayout(int index, QLayout *layout, int stretch)
QString email() const
Retrieve the author's email address.
Definition: knewstuff2/core/author.cpp:68
void setProvider(const KNS::Provider *provider)
Definition: kdxsbutton.cpp:166
static bool RatingSorter(const Entry *e1, const Entry *e2)
Definition: knewstuff2/ui/itemsview.cpp:77
static void invokeMailer(const QString &address, const QString &subject, const QByteArray &startup_id=QByteArray())
void setVerticalScrollMode(ScrollMode mode)
KTranslatable summary() const
Retrieve a short description about the object.
Definition: knewstuff2/core/entry.cpp:121
void setFrameStyle(int style)
KTranslatable name() const
Retrieve the name of the data object.
Definition: knewstuff2/core/entry.cpp:81
Definition: knewstuff2/core/entry.h:295
void setSearchText(const QString &text)
set the search text to filter the shown entries by
Definition: knewstuff2/ui/itemsview.cpp:132
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
bool isEmpty() const
void linkActivated(const QString &link)
void setText(const QString &)
GUI/CORE: HTML Widget for exactly one AvailableItem::List.
Definition: knewstuff2/ui/itemsview.h:96
QString representation() const
Returns the string which matches most closely the current language.
Definition: ktranslatable.cpp:64
static bool NameSorter(const Entry *e1, const Entry *e2)
Definition: knewstuff2/ui/itemsview.cpp:72
iterator end()
QString toLower() const
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 contains(QChar ch, Qt::CaseSensitivity cs) const
void setFixedSize(const QSize &s)
Definition: knewstuff2/core/entry.h:293
KGuiItem ok()
KLocale * locale()
static bool RecentSorter(const Entry *e1, const Entry *e2)
Definition: knewstuff2/ui/itemsview.cpp:82
QString escape(const QString &plain)
void updateItem(Entry *entry)
update the given item because it has changed
Definition: knewstuff2/ui/itemsview.cpp:138
void updateEntry(Entry *entry)
Definition: knewstuff2/ui/itemsview.cpp:225
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
void setFeed(const Feed *)
set which feed from the current provider to show
Definition: knewstuff2/ui/itemsview.cpp:126
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString formatDate(const QDate &date, DateFormat format=LongDate) const
void setBackgroundRole(QPalette::ColorRole role)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
EntryView(QWidget *parentWidget)
Definition: knewstuff2/ui/itemsview.cpp:213
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
iterator begin()
void addLayout(QLayout *layout, int stretch)
QString iconPath(const QString &name, int group_or_size, bool canReturnNull=false) 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.