Warning, /libraries/kquickimageeditor/tests/manual/SelectionToolCropBackgroundTest.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.CropBackground {
0023             anchors.fill: parent
0024             z: -1
0025             insideX: selectionTool.selectionX
0026             insideY: selectionTool.selectionY
0027             insideWidth: selectionTool.selectionWidth
0028             insideHeight: selectionTool.selectionHeight
0029         }
0030     }
0031 }