/* SPDX-FileCopyrightText: 2020 Kevin Ottens SPDX-FileCopyrightText: 2020 David Redondo SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import org.kde.kcmutils.private as KCMUtilsPrivate /** * SettingHighlighter automatically impacts the representation of an item based on * the value of a setting. When you are using this item you need to manually * manage whether the highlighting is enabled or not. For a higher level component * see KCM.SettingStateBinding which will manage the state of the Item * @since 6.0 */ Loader { id: root active: typeof kcm !== "undefined" && root.target !== null /** * target: Item * The graphical element whose appearance will be altered. * If target is not set, it will try to find the visual parent item */ property Item target: root.parent /** * highlight: bool * Whether the target will be highlighted. */ property bool highlight: false sourceComponent: KCMUtilsPrivate.SettingHighlighterPrivate { id: helper highlight: root.highlight target: root.target defaultIndicatorVisible: kcm.defaultsIndicatorsVisible } }