diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2019-12-12 13:16:00 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2021-01-27 14:17:38 +0200 |
commit | 6421dbd58cbf6ac32a7cde23c93c84e33c207456 (patch) | |
tree | f0a2fdb9b80efca4dae6e7d082959832a165de37 /src/virtualkeyboard/settings_p.h | |
parent | 9247332fc950a56aac22af1bc3b2e6b74823bd40 (diff) |
Add new setting for user data path
- The default userDataPath is set to QStandardPaths::GenericConfigLocation.
- Add a signal for application to indicate user data reset.
[ChangeLog] Added new property to settings
VirtualKeyboardSettings.userDataPath. This allows the application
or middleware to change the path to user files at runtime. Added
also a signal to indicate user data reset - when the application
triggers the signal, the virtual keyboard closes all files in the
user's directory.
Change-Id: I248a5b08c86b3fe7124a8d3f362c8f72e07b92c0
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/virtualkeyboard/settings_p.h')
-rw-r--r-- | src/virtualkeyboard/settings_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/virtualkeyboard/settings_p.h b/src/virtualkeyboard/settings_p.h index 843592fe..d026c74a 100644 --- a/src/virtualkeyboard/settings_p.h +++ b/src/virtualkeyboard/settings_p.h @@ -91,6 +91,9 @@ public: bool fullScreenMode() const; void setFullScreenMode(bool fullScreenMode); + QString userDataPath() const; + void setUserDataPath(const QString &userDataPath); + signals: void styleChanged(); void styleNameChanged(); @@ -102,6 +105,8 @@ signals: void wclAlwaysVisibleChanged(); void wclAutoCommitWordChanged(); void fullScreenModeChanged(); + void userDataPathChanged(); + void userDataReset(); }; } // namespace QtVirtualKeyboard |