Skip to content

Commit

Permalink
Skip traditional mode as it only shows redundent informations
Browse files Browse the repository at this point in the history
  • Loading branch information
poelzi committed Jun 25, 2018
1 parent 00dcec9 commit df831c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dialog/dlgkeywheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ DlgKeywheel::DlgKeywheel(QWidget *parent, UserSettingsPointer pConfig) :
// load the user configured setting as default
auto pKeyNotation = new ControlProxy(ConfigKey("[Library]", "key_notation"), this);
m_notation = static_cast<KeyUtils::KeyNotation>(pKeyNotation->get());
// we skip the TRADITIONAL display, because it shows redundant informations only
if (m_notation == KeyUtils::KeyNotation::TRADITIONAL) {
m_notation = KeyUtils::KeyNotation::OPEN_KEY;
}
updateDisplay();
}

Expand Down Expand Up @@ -57,6 +61,10 @@ bool DlgKeywheel::eventFilter(QObject *obj, QEvent *event)

void DlgKeywheel::switchDisplay(int dir) {
m_notation = static_cast<KeyUtils::KeyNotation>(static_cast<int>(m_notation) + dir);
// we skip the TRADITIONAL display, because it shows redundant informations only
if (m_notation == KeyUtils::KeyNotation::TRADITIONAL) {
m_notation = static_cast<KeyUtils::KeyNotation>(static_cast<int>(m_notation) + dir);
}
if (m_notation >= KeyUtils::KeyNotation::KEY_NOTATION_MAX) {
m_notation = KeyUtils::KeyNotation::CUSTOM;
} else if (m_notation <= KeyUtils::KeyNotation::INVALID) {
Expand Down

0 comments on commit df831c0

Please sign in to comment.