|
Krita Source Code Documentation
|
The NewTagResourceAction class defines an action that sends a signal with QString and a saved resource. More...
#include <TagActions.h>
Inheritance diagram for NewTagResourceAction:Signals | |
| void | triggered (const QString &newTagName, KoResourceSP resource) |
Public Member Functions | |
| NewTagResourceAction (KoResourceSP resource, QObject *parent) | |
| void | setResource (KoResourceSP resource) |
| ~NewTagResourceAction () override | |
Public Member Functions inherited from LineEditAction | |
| bool | closeParentOnTrigger () |
| void | setCloseParentOnTrigger (bool closeParent) |
| void | setIcon (const QIcon &icon) |
| void | setPlaceholderText (const QString &clickMessage) |
| void | setText (const QString &text) |
| void | setVisible (bool showAction) |
| ~LineEditAction () override | |
Protected Slots | |
| void | onTriggered () override |
Protected Slots inherited from LineEditAction | |
| virtual void | onTriggered () |
| onTriggered defines additional behaviour for the action | |
| void | slotActionTriggered () |
| slotActionTriggered defines all behaviour expressed when the widget is triggered | |
| QString | userText () |
| userText getter for the text inside the edit box | |
Private Attributes | |
| KoResourceSP | m_resource |
Additional Inherited Members | |
Protected Member Functions inherited from LineEditAction | |
| LineEditAction (QObject *parent) | |
The NewTagResourceAction class defines an action that sends a signal with QString and a saved resource.
It inherits all behaviours from LineEditAction. When triggered, it sends a signal with the content of the edit box as QString, and the saved resource.
Usages:
Definition at line 155 of file TagActions.h.
|
explicit |
Definition at line 154 of file TagActions.cpp.
References koIcon, m_resource, LineEditAction::setCloseParentOnTrigger(), LineEditAction::setIcon(), and LineEditAction::setPlaceholderText().
|
override |
Definition at line 163 of file TagActions.cpp.
|
overrideprotectedslot |
Definition at line 172 of file TagActions.cpp.
References m_resource, triggered(), and LineEditAction::userText().
| void NewTagResourceAction::setResource | ( | KoResourceSP | resource | ) |
Definition at line 167 of file TagActions.cpp.
References m_resource.
|
signal |
|
private |
Definition at line 173 of file TagActions.h.