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

Public Member Functions

void altKeySequenceChanged (const QKeySequence &)
 
 KisKShortcutWidgetPrivate (KisKShortcutWidget *q)
 
void priKeySequenceChanged (const QKeySequence &)
 

Public Attributes

QList< QKeySequence > cut
 
bool holdChangedSignal {false}
 
KisKShortcutWidget *const q
 
Ui::KisKShortcutWidget ui
 

Detailed Description

Definition at line 10 of file kshortcutwidget.cpp.

Constructor & Destructor Documentation

◆ KisKShortcutWidgetPrivate()

KisKShortcutWidgetPrivate::KisKShortcutWidgetPrivate ( KisKShortcutWidget * q)
inline

Definition at line 13 of file kshortcutwidget.cpp.

13: q(q) {}
KisKShortcutWidget *const q

Member Function Documentation

◆ altKeySequenceChanged()

void KisKShortcutWidgetPrivate::altKeySequenceChanged ( const QKeySequence & seq)

Definition at line 125 of file kshortcutwidget.cpp.

126{
127 if (cut.size() <= 1) {
128 cut << seq;
129 } else {
130 cut[1] = seq;
131 }
132
133 if (!holdChangedSignal) {
134 Q_EMIT q->shortcutChanged(cut);
135 }
136}
QList< QKeySequence > cut
void shortcutChanged(const QList< QKeySequence > &cut)

References cut, holdChangedSignal, q, and KisKShortcutWidget::shortcutChanged().

◆ priKeySequenceChanged()

void KisKShortcutWidgetPrivate::priKeySequenceChanged ( const QKeySequence & seq)

Definition at line 111 of file kshortcutwidget.cpp.

112{
113 if (cut.isEmpty()) {
114 cut << seq;
115 } else {
116 cut[0] = seq;
117 }
118
119 if (!holdChangedSignal) {
120 Q_EMIT q->shortcutChanged(cut);
121 }
122}

References cut, holdChangedSignal, q, and KisKShortcutWidget::shortcutChanged().

Member Data Documentation

◆ cut

QList<QKeySequence> KisKShortcutWidgetPrivate::cut

Definition at line 22 of file kshortcutwidget.cpp.

◆ holdChangedSignal

bool KisKShortcutWidgetPrivate::holdChangedSignal {false}

Definition at line 23 of file kshortcutwidget.cpp.

23{false};

◆ q

KisKShortcutWidget* const KisKShortcutWidgetPrivate::q

Definition at line 20 of file kshortcutwidget.cpp.

◆ ui

Ui::KisKShortcutWidget KisKShortcutWidgetPrivate::ui

Definition at line 21 of file kshortcutwidget.cpp.


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