2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 2.1.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
23
width: linkTitle.paintedWidth
28
property alias title : linkTitle.text
30
property color defaultColor : "#DD4814"
31
property color hoverColor : "#eee"
42
NumberAnimation { duration: 250 }
48
anchors.centerIn: parent
49
wrapMode: Text.WordWrap
50
width: parent.width - 20
53
font.letterSpacing: 1.5
55
font.weight: Font.Light
56
textFormat: Text.RichText
65
background.opacity = 1;
68
background.opacity = 0;
72
if (link !== undefined) Qt.openUrlExternally(link);
77
linkTitle.color = Qt.lighter(defaultColor);
80
linkTitle.color = defaultColor;