TemplateParser::TemplatesInsertCommandAction Class

The TemplatesInsertCommandAction class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TemplateParser/TemplatesInsertCommandAction>
CMake: find_package(KPim6TemplateParser REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::TemplateParser)

Public Functions

TemplatesInsertCommandAction(QObject *parent = nullptr)
virtual ~TemplatesInsertCommandAction() override
void setType(TemplatesCommandMenu::MenuTypes type)
TemplatesCommandMenu::MenuTypes type() const

Signals

void insertCommand(const QString &cmd, int adjustCursor)

Detailed Description

Member Function Documentation

[explicit] TemplatesInsertCommandAction::TemplatesInsertCommandAction(QObject *parent = nullptr)

Constructor parent parent object

[override virtual noexcept] TemplatesInsertCommandAction::~TemplatesInsertCommandAction()

Destructor

[signal] void TemplatesInsertCommandAction::insertCommand(const QString &cmd, int adjustCursor)

Emitted when a command is inserted cmd the command string adjustCursor cursor adjustment value

void TemplatesInsertCommandAction::setType(TemplatesCommandMenu::MenuTypes type)

Sets the menu type type the menu type to set

See also type().

TemplatesCommandMenu::MenuTypes TemplatesInsertCommandAction::type() const

Returns the menu type Returns menu type

See also setType().