Nepomuk
facetmodel.h
Go to the documentation of this file.
94 };
A FacetModel contains a list of facets that are provided in a tree structure.
Definition: facetmodel.h:68
void setClientQuery(const Nepomuk::Query::Query &query)
Can be used to set the full query the client is using (this includes facets created through this mode...
bool setData(const QModelIndex &index, const QVariant &value, int role)
Reimplemented to provide facet data to Qt's model/view framework.
Qt::ItemFlags flags(const QModelIndex &index) const
Reimplemented to provide facet data to Qt's model/view framework.
void clearSelection()
Convenience method that clears the selection on all facets.
void setFacets(const QList< Nepomuk::Utils::Facet * > &facets)
Set facets as the list of facets used in this model.
QList< Facet * > facets() const
Query::Term queryTerm() const
Construct a query term from the selected facets in this model.
bool hasChildren(const QModelIndex &parent) const
Reimplemented to provide facet data to Qt's model/view framework.
void queryTermChanged(const Nepomuk::Query::Term &term)
Emitted whenever the facets change, i.e.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Reimplemented to provide facet data to Qt's model/view framework.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Reimplemented to provide facet data to Qt's model/view framework.
QModelIndex parent(const QModelIndex &index) const
Reimplemented to provide facet data to Qt's model/view framework.
int columnCount(const QModelIndex &parent=QModelIndex()) const
Reimplemented to provide facet data to Qt's model/view framework.
CustomRoles
Special roles FacetModel provides through data() in addition to the standard Qt roles.
Definition: facetmodel.h:88
void addFacet(Nepomuk::Utils::Facet *facet)
Add facet to the model.
Nepomuk::Query::Query extractFacetsFromQuery(const Nepomuk::Query::Query &query)
Extract as many facets from a query as possible.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Reimplemented to provide facet data to Qt's model/view framework.
The base class for all facets used to create query filters.
Definition: facet.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.