Plasma
querymatch.cpp
Go to the documentation of this file.
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:64
bool hasConfigurationInterface() const
Definition querymatch.cpp:281
QueryMatch(AbstractRunner *runner)
Constructs a PossibleMatch associated with a given RunnerContext and runner.
Definition querymatch.cpp:89
QString id() const
@ruetnr a string that can be used as an ID for this match, even between different queries.
Definition querymatch.cpp:109
bool operator!=(const QueryMatch &other) const
Definition querymatch.cpp:268
QueryMatch & operator=(const QueryMatch &other)
Definition querymatch.cpp:254
void setIcon(const QIcon &icon)
Sets the icon associated with this match.
Definition querymatch.cpp:183
void setEnabled(bool enable)
Sets whether or not this match can be activited.
Definition querymatch.cpp:213
void setRelevance(qreal relevance)
Sets the relevance of this action for the search it was created for.
Definition querymatch.cpp:128
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:143
void setSubtext(const QString &text)
Sets the descriptive text for this match; can be longer than the main title text.
Definition querymatch.cpp:149
void setId(const QString &id)
Sets the id for this match; useful if the id does not match data().toString().
Definition querymatch.cpp:169
void setData(const QVariant &data)
Sets data to be used internally by the associated AbstractRunner.
Definition querymatch.cpp:155
bool operator<(const QueryMatch &other) const
Definition querymatch.cpp:233
void run(const RunnerContext &context) const
Requests this match to activae using the given context.
Definition querymatch.cpp:273
void createConfigurationInterface(QWidget *parent)
If hasConfigurationInterface() returns true, this method may be called to get a widget displaying the...
Definition querymatch.cpp:286
bool operator==(const QueryMatch &other) const
Definition querymatch.cpp:263
The RunnerContext class provides information related to a search, including the search term,...
Definition runnercontext.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.