]> git.tdb.fi Git - xinema.git/blob - remote/qml/components/DirectoryEntry.qml
Move non-page qml components to a separate subdirectory
[xinema.git] / remote / qml / components / DirectoryEntry.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 Item
5 {
6         id: entry
7
8         property alias icon: icon.source
9         property alias text: label.text
10         property int iconSize: Theme.iconSizeMedium
11         height: row.height
12
13         signal clicked()
14
15         Row
16         {
17                 id: row
18                 spacing: Theme.paddingMedium
19                 anchors
20                 {
21                         left: parent.left
22                         right: parent.right
23                         margins: Theme.horizontalPageMargin
24                 }
25
26                 Image
27                 {
28                         id: icon
29                         sourceSize.width: iconSize
30                         sourceSize.height: iconSize
31                         width: iconSize
32                         height: iconSize
33                 }
34                 Label
35                 {
36                         id: label
37                         height: icon.height
38                         verticalAlignment: Text.AlignVCenter
39                 }
40         }
41
42         MouseArea
43         {
44                 anchors.fill: parent
45                 onClicked: entry.clicked();
46         }
47 }