KRunner
querymatch.cpp
307 debug.nospace() << "QueryMatch(category: " << match.matchCategory() << " text:" << match.text() << ")";
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:45
This class represents an action that will be shown next to a match.
Definition action.h:23
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition querymatch.h:32
void setEnabled(bool enable)
Sets whether or not this match can be activited.
Definition querymatch.cpp:237
void setUrls(const QList< QUrl > &urls)
Sets the urls, if any, associated with this match.
Definition querymatch.cpp:225
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:151
void setActions(const QList< KRunner::Action > &actions)
Set the actions for this match.
Definition querymatch.cpp:286
void addAction(const KRunner::Action &action)
Adds an action to this match.
Definition querymatch.cpp:292
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition querymatch.cpp:136
void setId(const QString &id)
Sets the id for this match; useful if the id does not match data().toString().
Definition querymatch.cpp:177
void setIcon(const QIcon &icon)
Sets the icon associated with this match.
Definition querymatch.cpp:183
void setData(const QVariant &data)
Sets data to be used internally by the runner's AbstractRunner::run implementation.
Definition querymatch.cpp:163
void setCategoryRelevance(CategoryRelevance relevance)
Relevance for matches in the category.
Definition querymatch.h:81
void setMatchCategory(const QString &category)
Sets information about the type of the match which is used to group the matches.
Definition querymatch.cpp:123
KRunner::Action selectedAction() const
The action that the user has selected when running the match.
Definition querymatch.cpp:247
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:262
void setSubtext(const QString &text)
Sets the descriptive text for this match; can be longer than the main title text.
Definition querymatch.cpp:157
void setIconName(const QString &iconName)
Sets the icon name associated with this match.
Definition querymatch.cpp:189
QList< KRunner::Action > actions() const
List of actions set for this match.
Definition querymatch.cpp:298
QString matchCategory() const
Extra information about the match which can be used to categorize the type.
Definition querymatch.cpp:128
QueryMatch(AbstractRunner *runner=nullptr)
Constructs a PossibleMatch associated with a given RunnerContext and runner.
Definition querymatch.cpp:87
void setMultiLine(bool multiLine)
Set if the text should be displayed as a multiLine string.
Definition querymatch.cpp:257
QDebug & nospace()
bool isEmpty() const const
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.