/*SPDX-FileCopyrightText: 2018 Tomaz Canabrava <tcanabrava@kde.org>SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL*/import QtQuickimport QtQuick.Layoutsimport QtQuick.Controls as QQC2import org.kde.kcmutils as KCMUtilsimport org.kde.kirigami as KirigamiLoader {active: kcm.orcaInstalled()Kirigami.PlaceholderMessage {anchors.centerIn: parentwidth: Math.min(implicitWidth, parent.width)height: Math.min(implicitHeight, parent.height)visible: !parent.activeicon.name: "preferences-desktop-text-to-speech"text: i18nc("@info Placeholder message title", "The Orca Screen Reader is not installed")explanation: i18nc("@info Placeholder message explanation", "Please install it, then close and reopen this window")}sourceComponent: Kirigami.Form {Kirigami.FormGroup {Kirigami.FormEntry {contentItem: QQC2.CheckBox {id: enableScreenReadertext: i18nc("@option:check", "Enable Screen Reader")KCMUtils.SettingHighlighter {highlight: !kcm.screenReaderIsDefaults}checked: kcm.screenReaderEnabledonToggled: kcm.screenReaderEnabled = checked}}Kirigami.FormAction {enabled: action.enabledsubtitle: kcm.orcaLaunchFeedbackaction: QQC2.Action {text: i18nc("@action:button", "Launch Orca Screen Reader Configurationβ¦")onTriggered: kcm.launchOrcaConfiguration()}}}}}