Commit 9e809607 authored by kempe's avatar kempe

Updated StationDelegate property names

parent fb46a71e
......@@ -2,9 +2,10 @@ import QtQuick 2.6
import Sailfish.Silica 1.0
ListItem {
property string image
property string title
property string subtitle
property string stationIcon: ""
property string stationTitle: ""
property string stationInfo: ""
property string stationCurrent: ""
width: 400
contentHeight: Theme.itemSizeLarge
......@@ -15,14 +16,13 @@ ListItem {
Image {
id: image
source: stationLogo
source: stationIcon
smooth: true
fillMode: Image.PreserveAspectFit
cache: true
sourceSize.height: parent.height - 20
visible: image !== ""
}
Column {
......@@ -31,8 +31,7 @@ ListItem {
spacing: -Theme.paddingSmall
Label {
text: title
visible: title !== ""
text: stationTitle
}
Label {
......@@ -40,8 +39,15 @@ ListItem {
font.pixelSize: Theme.fontSizeExtraSmall
truncationMode: TruncationMode.Fade
color: Theme.secondaryColor
text: subtitle
visible: subtitle !== ""
text: stationInfo
}
Label {
width: parent.width
font.pixelSize: Theme.fontSizeSmall
truncationMode: TruncationMode.Fade
color: Theme.secondaryHighlightColor
text: stationCurrent
}
}
}
......
......@@ -37,9 +37,9 @@ Page {
id: favoritItem
width: parent.width
image: stationLogo
title: name
subtitle: "From " + country + ": " + genre
stationIcon: stationLogo
stationTitle: name
stationInfo: "From " + country + ": " + genre
menu: FavoritesListContextMenu {
id: contextMenu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment