File: SelectionToolSelectionBackgroundTest.qml

package info (click to toggle)
kquickimageeditor 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,180 kB
  • sloc: cpp: 5,601; makefile: 3
file content (30 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>
 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
 */

import QtQuick 2.15
import org.kde.kquickimageeditor 1.0 as KQuickImageEditor

Item {
    id: root
    width: 400
    height: 400
    Rectangle {
        id: background
        anchors.fill: parent
        anchors.margins: 20
        z: -1
        gradient: Gradient.MeanFruit
    }
    KQuickImageEditor.SelectionTool {
        id: selectionTool
        anchors.fill: background
        KQuickImageEditor.SelectionBackground {
            z: -1
            x: selectionTool.selectionX
            y: selectionTool.selectionY
            width: selectionTool.selectionWidth
            height: selectionTool.selectionHeight
        }
    }
}