KRunner
querymatch.cpp
void setText(const QString &text)
Sets the main title text for this match; should be short enough to fit nicely on one line in a user i...
Definition: querymatch.cpp:154
void setIconName(const QString &iconName)
Sets the icon name associated with this match.
Definition: querymatch.cpp:202
Type type(const QSqlDatabase &db)
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition: querymatch.h:34
KCALUTILS_EXPORT QString mimeType()
An abstract base class for Plasma Runner plugins.
Definition: abstractrunner.h:68
bool hasConfigurationInterface() const
Definition: querymatch.cpp:342
void setMultiLine(bool multiLine)
Set if the text should be displayed as a multiLine string.
Definition: querymatch.cpp:305
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition: querymatch.cpp:139
bool isMultiLine() const
If the text should be displayed as a multiLine string If no explicit value is set set using setMultil...
Definition: querymatch.cpp:310
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition: querymatch.cpp:334
bool isEmpty() const const
Recursive
void setEnabled(bool enable)
Sets whether or not this match can be activited.
Definition: querymatch.cpp:264
void setActions(const QList< QAction * > &actions)
Set the actions for this match.
Definition: querymatch.cpp:355
QString matchCategory() const
Extra information about the match which can be used to categorize the type.
Definition: querymatch.cpp:126
void setMatchCategory(const QString &category)
Sets information about the type of the match which can be used to categorize the match.
Definition: querymatch.cpp:121
void setSubtext(const QString &text)
Sets the descriptive text for this match; can be longer than the main title text.
Definition: querymatch.cpp:160
QueryMatch(AbstractRunner *runner=nullptr)
Constructs a PossibleMatch associated with a given RunnerContext and runner.
Definition: querymatch.cpp:81
void setUrls(const QList< QUrl > &urls)
Sets the urls, if any, associated with this match.
Definition: querymatch.cpp:252
void setMimeType(const QString &mimeType)
Sets the MimeType, if any, associated with this match.
Definition: querymatch.cpp:239
void setData(const QVariant &data)
Sets data to be used internally by the associated AbstractRunner.
Definition: querymatch.cpp:166
The RunnerContext class provides information related to a search, including the search term,...
Definition: runnercontext.h:31
void setCategoryRelevance(CategoryRelevance relevance)
Relevance for matches in the category.
Definition: querymatch.cpp:134
void setIcon(const QIcon &icon)
Sets the icon associated with this match.
Definition: querymatch.cpp:196
void createConfigurationInterface(QWidget *parent)
If hasConfigurationInterface() returns true, this method may be called to get a widget displaying the...
Definition: querymatch.cpp:349
CategoryRelevance
Helper for reading standardized category relevance values.
Definition: querymatch.h:122
void setId(const QString &id)
Sets the id for this match; useful if the id does not match data().toString().
Definition: querymatch.cpp:180
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:50:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:50:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.