Skip to content

Commit

Permalink
DlgfPrefKey: move setNotationCustom
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jul 25, 2021
1 parent ae2a79c commit c270ba4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/preferences/dialog/dlgprefkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,6 @@ void DlgPrefKey::slotUpdate() {
}
}

void DlgPrefKey::setNotationCustom(bool active) {
if (active) {
setNotation(KeyUtils::KeyNotation::Custom);
}
}

void DlgPrefKey::setNotation(KeyUtils::KeyNotation notation) {
for (auto it = m_keyLineEdits.constBegin();
it != m_keyLineEdits.constEnd(); ++it) {
Expand All @@ -284,6 +278,12 @@ void DlgPrefKey::setNotation(KeyUtils::KeyNotation notation) {
slotUpdate();
}

void DlgPrefKey::setNotationCustom(bool active) {
if (active) {
setNotation(KeyUtils::KeyNotation::Custom);
}
}

void DlgPrefKey::setNotationTraditional(bool active) {
if (active) {
setNotation(KeyUtils::KeyNotation::Traditional);
Expand Down

0 comments on commit c270ba4

Please sign in to comment.