1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "../UIConstants.js" as Const
7 property alias text: label.text
8 property bool isDirectory: false
9 property bool isPhoto: false
10 property bool isMusic: false
11 property bool isVideo: false
19 color: Const.TRANSPARENT
28 color: Const.DEFAULT_DIALOG_FOREGROUND_COLOR
30 visible: mouseArea.pressed
37 source: root.isDirectory ? "../images/folder-small.png" :
38 root.isPhoto ? "../images/photo-small.png" :
39 root.isMusic ? "../images/music-small.png" :
40 root.isVideo ? "../images/video-small.png" : "../images/document-small.png"
41 sourceSize.width: width
42 sourceSize.height: height
43 anchors.left: box.left;
44 anchors.verticalCenter: box.verticalCenter
45 anchors.margins: Const.TEXT_MARGIN
52 color: Const.DEFAULT_DIALOG_FOREGROUND_COLOR
53 elide: Text.ElideRight
54 anchors.left: icon.right; anchors.right: box.right
55 anchors.verticalCenter: box.verticalCenter
56 anchors.margins: Const.TEXT_MARGIN
64 root.clicked(root.properties);