Warning, /libraries/kquickimageeditor/tests/manual/SelectionToolSelectionBackgroundTest.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>
0002 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0003 */
0004
0005 import QtQuick 2.15
0006 import org.kde.kquickimageeditor 1.0 as KQuickImageEditor
0007
0008 Item {
0009 id: root
0010 width: 400
0011 height: 400
0012 Rectangle {
0013 id: background
0014 anchors.fill: parent
0015 anchors.margins: 20
0016 z: -1
0017 gradient: Gradient.MeanFruit
0018 }
0019 KQuickImageEditor.SelectionTool {
0020 id: selectionTool
0021 anchors.fill: background
0022 KQuickImageEditor.SelectionBackground {
0023 z: -1
0024 x: selectionTool.selectionX
0025 y: selectionTool.selectionY
0026 width: selectionTool.selectionWidth
0027 height: selectionTool.selectionHeight
0028 }
0029 }
0030 }