| 1 |
// Copyright (C) 2020 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick |
| 5 |
import Qt5Compat.GraphicalEffects |
| 6 |
|
| 7 |
Item { |
| 8 |
Rectangle { |
| 9 |
id: displacement |
| 10 |
color: Qt.rgba(0.5, 0.5, 1.0, 1.0) |
| 11 |
anchors.fill: parent |
| 12 |
visible: false |
| 13 |
Image { |
| 14 |
anchors.centerIn: parent |
| 15 |
source: "images/glass_normal.png" |
| 16 |
sourceSize: Qt.size(parent.width/2, parent.height/2) |
| 17 |
smooth: true |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
Displace { |
| 22 |
anchors.fill: parent |
| 23 |
source: bug |
| 24 |
displacementSource: displacement |
| 25 |
displacement: 0.1 |
| 26 |
} |
| 27 |
} |