Virtual Keyboard SNI: Improve text and usability

Summary:
This way we can see from the system tray its state.

CCBUG: 405397

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D19898
This commit is contained in:
Aleix Pol 2019-03-19 21:54:21 +01:00
parent d9c79e3627
commit 9e42ff2f48

View file

@ -219,11 +219,12 @@ void VirtualKeyboard::updateSni()
}
if (m_enabled) {
m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-on"));
m_sni->setToolTipTitle(i18n("Virtual Keyboard is enabled."));
m_sni->setTitle(i18n("Virtual Keyboard: enabled"));
} else {
m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-off"));
m_sni->setToolTipTitle(i18n("Virtual Keyboard is disabled."));
m_sni->setTitle(i18n("Virtual Keyboard: disabled"));
}
m_sni->setToolTipTitle(i18n("Whether to show the virtual keyboard on demand."));
}
void VirtualKeyboard::show()