/* SPDX-FileCopyrightText: 2016 Marco Martin SPDX-License-Identifier: GPL-2.0-or-later */ import QtQuick 2.2 import QtQuick.Controls 2.15 as Controls import org.kde.ksvg 1.0 as KSvg KSvg.FrameSvgItem { id: root imagePath: "widgets/background" state: KSvg.Svg.Normal width: 600 height: 800 Column { anchors.centerIn: parent spacing: 4 Controls.Button { text: "Switch Selected State" onClicked: root.state = (root.state == KSvg.Svg.Selected ? KSvg.Svg.Normal : KSvg.Svg.Selected) } KSvg.SvgItem { svg: KSvg.Svg { id: svg imagePath: "icons/phone" state: root.state } } } }