Nepomuk
searchwidget.h
Go to the documentation of this file.
194 void currentResourceChanged(const Nepomuk::Resource & previous, const Nepomuk::Resource & current );
A widget providing a list of facets to add filters to a query.
Definition facetwidget.h:58
void setConfigFlags(ConfigFlags flags)
Set the config flags to be used.
void setSelectionMode(QAbstractItemView::SelectionMode mode)
Sets the selection mode of the view to mode.
ConfigFlag
The config flags can be used to configure the search widget to fit the needs of the application.
Definition searchwidget.h:73
@ SearchWhileYouType
enable auto searching while the user is typing in the query (live query)
Definition searchwidget.h:81
static QList< Nepomuk::Resource > searchResources(QWidget *parent=0, const Nepomuk::Query::Query &baseQuery=Nepomuk::Query::Query(), SearchWidget::ConfigFlags flags=SearchWidget::DefaultConfigFlags)
Creates a dialog embedding a SearchWidget that allows the user to select resources from the result se...
void setBaseQuery(const Nepomuk::Query::Query &query)
Set the base query.
void selectionChanged()
Emitted when the selection is changed, ie.
QList< Resource > selectedResources() const
QAbstractItemView::SelectionMode selectionMode() const
Nepomuk::Query::Query setQuery(const Nepomuk::Query::Query &query)
Set the query currently configured in the widget.
Resource currentResource() const
FacetWidget * facetWidget() const
The facet widget that is used internally.
void currentResourceChanged(const Nepomuk::Resource &previous, const Nepomuk::Resource ¤t)
Emited when current resource is changed.
Query::Query query() const
Construct the query currently used by this widget including the baseQuery(), all facets,...
ConfigFlags configFlags() const
The config flags set via setConfigFlags().
Query::Query baseQuery() const
static Nepomuk::Resource searchResource(QWidget *parent=0, const Nepomuk::Query::Query &baseQuery=Nepomuk::Query::Query(), SearchWidget::ConfigFlags flags=SearchWidget::DefaultConfigFlags)
Creates a dialog embedding a SearchWidget that allows the user to select one resource from the result...
The Query namespace contains all classes that make up the Nepomuk Query API.
The Utils namespace contains utility and convenience methods and classes that help the application de...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.