Krita Source Code Documentation
Loading...
Searching...
No Matches
KUndo2Action Class Reference

#include <kundo2stack_p.h>

+ Inheritance diagram for KUndo2Action:

Public Slots

void setPrefixedText (const QString &text)
 

Public Member Functions

 KUndo2Action (const QString &textTemplate, const QString &defaultText, QObject *parent=0)
 

Private Attributes

QString m_defaultText
 
QString m_textTemplate
 

Detailed Description

Definition at line 79 of file kundo2stack_p.h.

Constructor & Destructor Documentation

◆ KUndo2Action()

KUndo2Action::KUndo2Action ( const QString & textTemplate,
const QString & defaultText,
QObject * parent = 0 )

Definition at line 528 of file kundo2stack.cpp.

529 : QAction(parent)
530 , m_textTemplate(textTemplate)
531 , m_defaultText(defaultText)
532{
533}
QString m_defaultText
QString m_textTemplate

Member Function Documentation

◆ setPrefixedText

void KUndo2Action::setPrefixedText ( const QString & text)
slot

Definition at line 535 of file kundo2stack.cpp.

536{
537 if (text.isEmpty())
539 else
540 setText(m_textTemplate.arg(text));
541}
void setText(QSpinBox *spinBox, const QStringView textTemplate)

References m_defaultText, and m_textTemplate.

Member Data Documentation

◆ m_defaultText

QString KUndo2Action::m_defaultText
private

Definition at line 88 of file kundo2stack_p.h.

◆ m_textTemplate

QString KUndo2Action::m_textTemplate
private

Definition at line 87 of file kundo2stack_p.h.


The documentation for this class was generated from the following files: