TextAutoCorrectionCore::TextAutoCorrectionSettings Class
Singleton wrapper for text autocorrection settings configuration. More...
| Header: | #include <TextAutoCorrectionCore/TextAutoCorrectionSettings> |
| CMake: | find_package(KF6TextAutoCorrectionCore REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextAutoCorrectionCore) |
Public Functions
| void | requestSync() |
Private Slots
| void | slotSyncNow() |
Detailed Description
Provides convenient access to autocorrection settings with optimized configuration file synchronization using a timer.
Author: Laurent Montel <montel@kde.org>
Member Function Documentation
void TextAutoCorrectionSettings::requestSync()
Requests a synchronization of the configuration settings.
Call this slot instead of directly calling KConfig::sync() to minimize the overall config writes. Calling this slot will schedule a sync of the application config file using a timer, so that many consecutive calls can be condensed into a single sync, which is more efficient.