blob: 3ba335b152cf3beab6f3f5ae12a2e6f4a87a08bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick 2.4
AnimatedSprite {
id: animatedSprite
source: big ? "img100x100.png" : "img50x50.png"
frameWidth: 100
frameHeight: 100
property bool big: true
MouseArea {
anchors.fill: parent
onClicked: animatedSprite.big = !animatedSprite.big
}
}
|