[OSD] Add OSD for when on-screen keyboard is enabled/disabled

This is to provide feedback when the on-screen keyboard is enabled or disabled in response
to the user taking some action, such as flipping over a convertible laptop.

Differential Revision: https://phabricator.kde.org/D1563
wilder-5.14
Kai Uwe Broulik 10 years ago
parent c1e5dfbefe
commit 31868085b1
  1. 9
      shell/osd.cpp
  2. 1
      shell/osd.h

@ -142,6 +142,15 @@ void Osd::wwanEnabledChanged(bool wwanEnabled)
}
}
void Osd::virtualKeyboardEnabledChanged(bool virtualKeyboardEnabled)
{
if (virtualKeyboardEnabled) {
showText(QStringLiteral("input-keyboard-virtual-on"), i18nc("on screen keyboard was enabled because physical keyboard got unplugged, keep short", "On-Screen Keyboard Activated"));
} else {
showText(QStringLiteral("input-keyboard-virtual-off"), i18nc("on screen keyboard was disabled because physical keyboard was plugged in, keep short", "On-Screen Keyboard Deactivated"));
}
}
bool Osd::init()
{
if (m_osdObject && m_osdObject->rootObject()) {

@ -50,6 +50,7 @@ public Q_SLOTS:
void wifiEnabledChanged(bool wifiEnabled);
void bluetoothEnabledChanged(bool bluetoothEnabled);
void wwanEnabledChanged(bool wwanEnabled);
void virtualKeyboardEnabledChanged(bool virtualKeyboardEnabled);
Q_SIGNALS:
void osdProgress(const QString &icon, const int percent, const QString &additionalText);

Loading…
Cancel
Save