@@ -14,7 +14,8 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17−import QtQuick 2.0
17+import QtQuick 2.3
18+import QtQuick.Layouts 1.1
18import Ubuntu.Components 1.1
19import Ubuntu.Components 1.1
20MouseArea {
21MouseArea {
@@ -22,6 +23,7 @@ MouseArea {
23 property alias icon: shapeImage.source
24 property alias icon: shapeImage.source
24 property alias text: titleLabel.text
25 property alias text: titleLabel.text
26+ property alias subtext: subtitleLabel.text
25 property alias showStar: star.visible
27 property alias showStar: star.visible
27 property bool isFavorite: false
29 property bool isFavorite: false
@@ -41,8 +43,8 @@ MouseArea {
41 fillMode: Image.PreserveAspectCrop
43 fillMode: Image.PreserveAspectCrop
45− id: titleLabel
47+ ColumnLayout {
47 left: shape.right
49 left: shape.right
48 leftMargin: units.gu(1)
50 leftMargin: units.gu(1)
@@ -50,10 +52,22 @@ MouseArea {
50 rightMargin: units.gu(1)
52 rightMargin: units.gu(1)
51 verticalCenter: parent.verticalCenter
53 verticalCenter: parent.verticalCenter
53− elide: Text.ElideRight
57+ elide: Text.ElideRight
54− wrapMode: Text.Wrap
58+ wrapMode: Text.Wrap
55− maximumLineCount: 1
59+ maximumLineCount: 1
60+ verticalAlignment: Text.AlignHCenter
64+ elide: Text.ElideRight
56− verticalAlignment: Text.AlignHCenter
68+ verticalAlignment: Text.AlignHCenter
58 MouseArea {
72 MouseArea {
59 id: starArea
73 id: starArea