ShiftHandler Class
class QtVirtualKeyboard::ShiftHandlerManages the shift state. More...
| Header: | #include <ShiftHandler> |
| Instantiated By: | ShiftHandler |
| Inherits: | QObject |
Properties
- autoCapitalizationEnabled : const bool
- sentenceEndingCharacters : QString
- toggleShiftEnabled : const bool
Public Functions
| virtual | ~ShiftHandler() |
| void | clearToggleShiftTimer() |
| bool | isAutoCapitalizationEnabled() const |
| bool | isCapsLockActive() const |
| bool | isShiftActive() const |
| bool | isToggleShiftEnabled() const |
| bool | isUppercase() const |
| QString | sentenceEndingCharacters() const |
| void | setCapsLockActive(bool active) |
| void | setSentenceEndingCharacters(const QString &value) |
| void | setShiftActive(bool active) |
Signals
| void | autoCapitalizationEnabledChanged() |
| void | capsLockActiveChanged() |
| void | sentenceEndingCharactersChanged() |
| void | shiftActiveChanged() |
| void | toggleShiftEnabledChanged() |
| void | uppercaseChanged() |
Detailed Description
\internal\inmodule QtVirtualKeyboard
Property Documentation
[read-only] autoCapitalizationEnabled : const bool
\since1.2
This property provides the current state of the automatic capitalization feature.
Access functions:
| bool | isAutoCapitalizationEnabled() const |
Notifier signal:
| void | autoCapitalizationEnabledChanged() |
sentenceEndingCharacters : QString
This property specifies the sentence ending characters which will cause shift state change.
By default, the property is initialized to sentence ending characters found in the ASCII range (i.e. ".!?").
Access functions:
| QString | sentenceEndingCharacters() const |
| void | setSentenceEndingCharacters(const QString &value) |
Notifier signal:
| void | sentenceEndingCharactersChanged() |
[read-only] toggleShiftEnabled : const bool
\since1.2
This property provides the current state of the toggleShift() method. When true, the current shift state can be changed by calling the toggleShift() method.
Access functions:
| bool | isToggleShiftEnabled() const |
Notifier signal:
| void | toggleShiftEnabledChanged() |
Member Function Documentation
[virtual noexcept] ShiftHandler::~ShiftHandler()
\internal
[invokable] void ShiftHandler::clearToggleShiftTimer()
Clears the toggle shift timer. \internal
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.