DataQualityListComponent.qml Example File
listdecorators/assets/DataQualityListComponent.qml
import bb.cascades 1.0
ListItemComponent {
type: "dataQualityDecorated"
Container {
id: item
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Center
CoverArt {
}
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 5
}
horizontalAlignment: HorizontalAlignment.Left
verticalAlignment: VerticalAlignment.Center
text: ListItemData.name
textStyle {
base: SystemDefaults.TextStyles.PrimaryText
}
}
Label {
verticalAlignment: VerticalAlignment.Center
text: "["
textStyle {
base: SystemDefaults.TextStyles.PrimaryText
}
}
ImageView {
verticalAlignment: VerticalAlignment.Center
imageSource: "asset:///images/" + ListItemData.dataQualityImage
}
Label {
verticalAlignment: VerticalAlignment.Center
text: "]"
textStyle {
base: SystemDefaults.TextStyles.PrimaryText
}
}
}
}