2 import com.nokia.meego 1.0
3 import com.nokia.extras 1.0
4 import 'UIConstants.js' as UI
10 property bool pressed: false
12 property bool isHeader: model.header
14 property int titleSize: (model.header ? UI.FONT_XLARGE : UI.FONT_DEFAULT)
15 property int titleWeight: Font.Bold
16 property color titleColor: theme.inverted ? (model.header ? UI.COLOR_FOREGROUND : UI.COLOR_INVERTED_FOREGROUND) : (UI.COLOR_FOREGROUND)
18 property int subtitleSize: UI.FONT_XSMALL
19 property int subtitleWeight: Font.Light
20 property color subtitleColor: theme.inverted ? UI.COLOR_SECONDARY_FOREGROUND : UI.COLOR_INVERTED_SECONDARY_FOREGROUND
22 height: UI.LIST_ITEM_HEIGHT_SMALL
27 anchors.leftMargin: -UI.MARGIN_XLARGE
28 anchors.rightMargin: -UI.MARGIN_XLARGE
29 color: UI.COLOR_SELECT
30 visible: listItem.isHeader
35 spacing: UI.DEFAULT_MARGIN
37 Item { width: UI.DEFAULT_MARGIN; height: 1; visible: !model.header }
40 // anchors.top: parent.top
41 height: UI.LIST_ITEM_HEIGHT_SMALL
44 anchors.verticalCenter: parent.verticalCenter
49 font.weight: listItem.titleWeight
50 font.pixelSize: listItem.titleSize
51 color: listItem.titleColor
57 font.weight: listItem.subtitleWeight
58 font.pixelSize: listItem.subtitleSize
59 color: listItem.subtitleColor
69 anchors.right: parent.right
70 anchors.verticalCenter: parent.verticalCenter
71 anchors.rightMargin: UI.DEFAULT_MARGIN
72 iconSource: "image://theme/icon-m-toolbar-add"
74 openSelectInstallFamilyDialog(model.priority)
76 visible: listItem.isHeader
80 id: selectInstallFamilyDialogLoader
87 enabled: !listItem.isHeader
88 visible: !listItem.isHeader
90 if (preferFamilyListView.currentIndex === index)
91 preferFamilyListView.currentIndex = -1
93 preferFamilyListView.currentIndex = index