|
Krita Source Code Documentation
|
The UserInputTagAction class defines an action with user text input that sends a signal with a simple QString. More...
#include <TagActions.h>
Inheritance diagram for UserInputTagAction:Signals | |
| void | triggered (const QString &newTagName) |
Public Member Functions | |
| UserInputTagAction (QObject *parent) | |
| ~UserInputTagAction () 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 | |
Additional Inherited Members | |
Protected Member Functions inherited from LineEditAction | |
| LineEditAction (QObject *parent) | |
The UserInputTagAction class defines an action with user text input that sends a signal with a simple QString.
It inherits all behaviour from LineEditAction. When triggered, it sends a signal with the content of the edit box.
Usages:
Definition at line 130 of file TagActions.h.
|
explicit |
Definition at line 135 of file TagActions.cpp.
References koIcon, LineEditAction::setCloseParentOnTrigger(), LineEditAction::setIcon(), and LineEditAction::setPlaceholderText().
|
override |
Definition at line 143 of file TagActions.cpp.
|
overrideprotectedslot |
Definition at line 147 of file TagActions.cpp.
References triggered(), and LineEditAction::userText().
|
signal |