3 import com.nokia.meego 1.0
4 import com.nokia.extras 1.0
6 import "UIConstants.js" as UIConstants
7 import "ExtrasConstants.js" as ExtrasConstants
10 property Item selector
17 visible: mouseArea.pressed
18 source: theme.inverted ? 'image://theme/meegotouch-list-inverted-background-pressed-vertical-center': 'image://theme/meegotouch-list-background-pressed-vertical-center'
23 visible: selector.selectedIndex == index
24 source: theme.inverted ? 'image://theme/meegotouch-list-inverted-background-selected-vertical-center': 'image://theme/meegotouch-list-background-selected-vertical-center'
29 anchors.margins: UIConstants.DEFAULT_MARGIN
33 verticalCenter: parent.center
39 elide: Text.ElideRight
42 font.pixelSize: UIConstants.FONT_DEFAULT
43 font.family: ExtrasConstants.FONT_FAMILY
47 (selector.selectedIndex == index) ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
49 (selector.selectedIndex != index) ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
58 onClicked: selector.selectedIndex = index