KNewStuff
categoriesmodel.cpp
27 static const QHash<int, QByteArray> roles{{NameRole, "name"}, {IdRole, "id"}, {DisplayNameRole, "displayName"}};
44 const QList<KNSCore::Provider::CategoryMetadata> categoriesMetadata = m_engine->categoriesMetadata();
52 return i18nc("The first entry in the category selection list (also the default value)", "All Categories");
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:72
void signalCategoriesMetadataLoded(const QList< Provider::CategoryMetadata > &categories)
QList< Provider::CategoryMetadata > categoriesMetadata()
Definition enginebase.cpp:292
QString i18nc(const char *context, const char *text, const TYPE &arg...)
Category category(StandardShortcut id)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
qsizetype count() const const
bool isValid() const const
int row() const const
QObject * parent() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
Describes a category: id/name/displayName.
Definition provider.h:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.