KNewStuff
categoriesmodel.cpp
24 connect(d->engine, &KNSCore::Engine::signalCategoriesMetadataLoded, this, [this](){ beginResetModel(); endResetModel(); });
53 const QList<KNSCore::Provider::CategoryMetadata> categoriesMetadata = d->engine->categoriesMetadata();
64 result.setValue(i18nc("The first entry in the category selection list (also the default value)", "All Categories"));
93 QString dispName = i18nc("The string passed back in the case the requested category is not known", "Unknown Category");
Q_INVOKABLE QString idToDisplayName(const QString &id) const
Get the display name for the category with the id passed to the function.
Definition: categoriesmodel.cpp:91
bool isValid() const const
int count(const T &value) const const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
int row() const const
void setValue(const T &value)
Category category(StandardShortcut id)
Describes a category: id/name/disaplayName.
Definition: provider.h:85
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.