/**************************************************************************** ** ** Copyright (C) 2011 Nokia Institute of Technology. ** All rights reserved. ** Contact: Manager (renato.chencarek@openbossa.org) ** ** This file is part of the Incredible Circus project. ** ** GNU Lesser General Public License Usage ** ** This file may be used under the terms of the GNU Lesser General Public ** License version 2.1 as published by the Free Software Foundation and ** appearing in the file LICENSE.LGPL included in the packaging of this ** file. Please review the following information to ensure the GNU Lesser ** General Public License version 2.1 requirements will be met: ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ****************************************************************************/ import QtQuick 1.1 import Circus 1.0 Item { id: helpCard property alias text: theText.text property alias fontSize: theText.fontSize property alias color: theText.color property alias horizontalAlignment: theText.horizontalAlignment property string image: "" width: cardImage.width height: cardImage.height Image { id: cardImage source: "image://cache/widgets/helpcard/_cards/card.png" } Image { anchors { horizontalCenter: parent.horizontalCenter top: parent.top topMargin: 36 * scaleFactor } source: image ? "image://cache/widgets/helpcard/_cards/" + helpCard.image + ".png" : "" } Label { id: theText anchors { fill: cardImage margins: 26 * scaleFactor } color: "#3b2517" fontSize: 24 * scaleFactor effect: SimpleText.LightText verticalAlignment: SimpleText.AlignBottom } }