Changeset View
Changeset View
Standalone View
Standalone View
virtualkeyboard.cpp
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Line(s) | |||||
214 | 214 | | |||
215 | void VirtualKeyboard::updateSni() | 215 | void VirtualKeyboard::updateSni() | ||
216 | { | 216 | { | ||
217 | if (!m_sni) { | 217 | if (!m_sni) { | ||
218 | return; | 218 | return; | ||
219 | } | 219 | } | ||
220 | if (m_enabled) { | 220 | if (m_enabled) { | ||
221 | m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-on")); | 221 | m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-on")); | ||
222 | m_sni->setToolTipTitle(i18n("Virtual Keyboard is enabled.")); | 222 | m_sni->setTitle(i18n("Virtual Keyboard: enabled")); | ||
223 | } else { | 223 | } else { | ||
224 | m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-off")); | 224 | m_sni->setIconByName(QStringLiteral("input-keyboard-virtual-off")); | ||
225 | m_sni->setToolTipTitle(i18n("Virtual Keyboard is disabled.")); | 225 | m_sni->setTitle(i18n("Virtual Keyboard: disabled")); | ||
226 | } | 226 | } | ||
227 | m_sni->setToolTipTitle(i18n("Whether to show the virtual keyboard on demand.")); | ||||
ngraham: on tap -> on demand | |||||
227 | } | 228 | } | ||
228 | 229 | | |||
229 | void VirtualKeyboard::show() | 230 | void VirtualKeyboard::show() | ||
230 | { | 231 | { | ||
231 | if (m_inputWindow.isNull() || !m_enabled) { | 232 | if (m_inputWindow.isNull() || !m_enabled) { | ||
232 | return; | 233 | return; | ||
233 | } | 234 | } | ||
234 | m_inputWindow->setGeometry(screens()->geometry(screens()->current())); | 235 | m_inputWindow->setGeometry(screens()->geometry(screens()->current())); | ||
▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines |
on tap -> on demand