Skip to content

Commit

Permalink
Keyboard Repeat: use camelCase var
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg authored and ronso0 committed Dec 29, 2023
1 parent dd449e4 commit 49d6816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/control/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ControlDoublePrivate::ControlDoublePrivate()
Stat::SAMPLE_VARIANCE | Stat::MIN | Stat::MAX),
// default CO is read only
m_confirmRequired(true),
m_kbd_repeatable(false) {
m_kbdRepeatable(false) {
m_value.setValue(0.0);
}

Expand All @@ -58,7 +58,7 @@ ControlDoublePrivate::ControlDoublePrivate(
m_trackFlags(Stat::COUNT | Stat::SUM | Stat::AVERAGE |
Stat::SAMPLE_VARIANCE | Stat::MIN | Stat::MAX),
m_confirmRequired(false),
m_kbd_repeatable(false) {
m_kbdRepeatable(false) {
initialize(defaultValue);
}

Expand Down
6 changes: 3 additions & 3 deletions src/control/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class ControlDoublePrivate : public QObject {
}

void setKbdRepeatable(bool enable) {
m_kbd_repeatable = enable;
m_kbdRepeatable = enable;
}

bool getKbdRepeatable() const {
return m_kbd_repeatable;
return m_kbdRepeatable;
}

// Sets the control value.
Expand Down Expand Up @@ -207,7 +207,7 @@ class ControlDoublePrivate : public QObject {
QString m_description;

// If true, this control will be issued repeatedly if the keyboard key is held.
bool m_kbd_repeatable;
bool m_kbdRepeatable;

// The control value.
ControlValueAtomic<double> m_value;
Expand Down

0 comments on commit 49d6816

Please sign in to comment.