Changeset View
Changeset View
Standalone View
Standalone View
src/controls/ShadowedImage.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: LGPL-2.0-or-later | ||||
5 | */ | ||||
6 | | ||||
7 | import QtQuick 2.1 | ||||
8 | import org.kde.kirigami 2.12 | ||||
9 | | ||||
10 | Item { | ||||
11 | property alias color: shadowRectangle.color | ||||
12 | property alias radius: shadowRectangle.radius | ||||
13 | property alias shadow: shadowRectangle.shadow | ||||
14 | property alias border: shadowRectangle.border | ||||
15 | property alias source: image.source | ||||
16 | | ||||
17 | ShadowedTexture { | ||||
18 | id: shadowRectangle | ||||
19 | anchors.fill: parent | ||||
20 | | ||||
21 | source: Image { | ||||
22 | id: image | ||||
23 | visible: false | ||||
24 | } | ||||
25 | } | ||||
26 | } |