PimCommon::ActionType Class
The ActionType class provides type information for generic plugin actions Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <PimCommon/AbstractGenericPluginInterface> |
| CMake: | find_package(KPim6PimCommon REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::PimCommon) |
Public Functions
| ActionType() | |
| ActionType(QAction *action, PimCommon::ActionType::Type type) | |
| QAction * | action() const |
| PimCommon::ActionType::Type | type() const |
| bool | operator==(const PimCommon::ActionType &other) const |
Detailed Description
Member Function Documentation
[constexpr noexcept default] ActionType::ActionType()
Constructs a default ActionType.
ActionType::ActionType(QAction *action, PimCommon::ActionType::Type type)
Constructs an ActionType with the given action and type. @param action The QAction associated with this ActionType @param type The type of action
QAction *ActionType::action() const
Returns the QAction associated with this ActionType. @return The action, or nullptr if not set
PimCommon::ActionType::Type ActionType::type() const
Returns the type of this action. @return The action type
[constexpr noexcept default] bool ActionType::operator==(const PimCommon::ActionType &other) const
Compares this ActionType with another for equality. @param other The ActionType to compare with @return true if both ActionTypes are equal, false otherwise