Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/private/GlobalSonnetSettings.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
0003
0004 SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 pragma Singleton
0008
0009 import QtQml.Models
0010 import org.kde.sonnet as Sonnet
0011
0012 /*
0013 * Global singleton of Sonnet Settings. It is loaded asynchronously when a first
0014 * non-readonly TextField or TextArea is instantiated.
0015 */
0016 Instantiator {
0017 // type-safe nullable reference
0018 readonly property Sonnet.Settings instance: object as Sonnet.Settings
0019
0020 // This property can be used as a default binding for Kirigami.SpellCheck.enabled flag.
0021 readonly property bool checkerEnabledByDefault: instance?.checkerEnabledByDefault ?? false
0022
0023 active: true
0024 asynchronous: true
0025
0026 Sonnet.Settings {}
0027 }