SVN commit 678431 by ghorwin: Added configuration option for hiding/dimming yet unknown keys. M +11 -1 ktouchkeyboardwidget.cpp M +14 -7 ui/ktouchprefkeyboardpage.ui --- trunk/KDE/kdeedu/ktouch/src/ktouchkeyboardwidget.cpp #678430:678431 @@ -134,7 +134,17 @@ void KTouchKeyboardWidget::setKnownChars(const QSet& knownChars) { if (!Prefs::showKeyboard()) return; - if (!Prefs::showLearnedKeysOnly()) return; + if (!Prefs::showLearnedKeysOnly()) { + // make sure all key states are set to normal and then show the next key again + QList::iterator it; + for( it = m_keyboard->m_keys.begin(); it != m_keyboard->m_keys.end(); ++it ) { + KTouchKey * key = *it; + key->m_state = KTouchKey::NormalState; + key->update(); + } + newKey(m_nextKey); + return; + } kDebug() << "KTouchKeyboardWidget::setKnownChars: " << m_nextKey << endl; m_knownChars = knownChars; // loop over all keys and set them to disabled at first --- trunk/KDE/kdeedu/ktouch/src/ui/ktouchprefkeyboardpage.ui #678430:678431 @@ -6,14 +6,14 @@ 0 0 396 - 217 + 298 Keyboard Settings - - + + Show keyboard @@ -21,8 +21,8 @@ true - - + + Show on the keyboards the keys you have to type @@ -35,7 +35,14 @@ - + + + + Hide/dim not yet learned keys + + + + If checked you can specify your own keyboard font instead of the predefined one of the keyboard layout. @@ -91,7 +98,7 @@ - + Qt::Vertical