KRunner::Action
#include <action.h>
Properties | |
QString | iconSource |
QString | text |
Public Member Functions | |
Action () | |
Action (const KRunner::Action &other) | |
Action (const QString &id, const QString &iconSource, const QString &text) | |
QString | iconSource () const |
QString | id () const |
operator bool () const | |
Action & | operator= (const Action &other) |
bool | operator== (const KRunner::Action &other) const |
QString | text () const |
Detailed Description
This class represents an action that will be shown next to a match.
The goal is to make it more reliable, because QIcon::fromTheme which is often needed in a QAction constructor is not thread safe. Also, it makes the API more consistent with the org.kde.krunner1 DBus interface and forces consumers to set an icon.
- Since
- 6.0
Property Documentation
◆ iconSource
|
read |
◆ text
Constructor & Destructor Documentation
◆ Action() [1/3]
Constructs a new action.
- Parameters
-
id ID which identifies the action uniquely within the context of the respective runner plugin iconSource name for the icon, that can be passed in to QIcon::fromTheme or file path/URL
Definition at line 25 of file action.cpp.
◆ Action() [2/3]
Action::Action | ( | ) |
Empty constructor creating invalid action.
Definition at line 33 of file action.cpp.
◆ Action() [3/3]
Action::Action | ( | const KRunner::Action & | other | ) |
Copy constructor.
Definition at line 29 of file action.cpp.
Member Function Documentation
◆ iconSource()
QString Action::iconSource | ( | ) | const |
Definition at line 53 of file action.cpp.
◆ id()
QString Action::id | ( | ) | const |
Definition at line 45 of file action.cpp.
◆ operator bool()
|
inlineexplicit |
◆ operator=()
Definition at line 39 of file action.cpp.
◆ operator==()
|
inline |
◆ text()
QString Action::text | ( | ) | const |
Definition at line 49 of file action.cpp.
The documentation for this class was generated from the following files:
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.