Warning, /games/kbreakout/src/qml/Brick.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2012 Viranch Mehta <viranch.mehta@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.3 0008 import org.kde.games.core 0.1 as KgCore 0009 import "globals.js" as Globals 0010 0011 CanvasItem { 0012 id: brick 0013 property int row 0014 property int column 0015 0016 width: m_scale * Globals.BRICK_WIDTH 0017 height: m_scale * Globals.BRICK_HEIGHT 0018 0019 x: m_scale * (column*Globals.BRICK_WIDTH) 0020 y: m_scale * (row*Globals.BRICK_HEIGHT) 0021 0022 Behavior on y { SpringAnimation { spring: 2; damping: 0.2 } } 0023 0024 property string type 0025 onTypeChanged: spriteKey = type; 0026 0027 visible: type!="HiddenBrick" 0028 0029 property string giftType 0030 property bool hasGift: giftType!="" 0031 }