X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FDirectoryEntry.qml;fp=remote%2Fqml%2Fpages%2FDirectoryEntry.qml;h=f8e0862cc0e3ec4495f1067de66c8e66db1b460d;hb=1abfbdd94fa45883f6d742df00508715f79c9954;hp=0000000000000000000000000000000000000000;hpb=5a79899d5a888e9aa76f29cb889e77979062a4a1;p=xinema.git diff --git a/remote/qml/pages/DirectoryEntry.qml b/remote/qml/pages/DirectoryEntry.qml new file mode 100644 index 0000000..f8e0862 --- /dev/null +++ b/remote/qml/pages/DirectoryEntry.qml @@ -0,0 +1,45 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +Item +{ + id: entry + + property alias icon: icon.source + property alias text: label.text + property int iconSize: Theme.iconSizeMedium + height: row.height + width: row.width + + signal pressed() + + Row + { + id: row + spacing: Theme.paddingSmall + + Image + { + id: icon + sourceSize.width: iconSize + sourceSize.height: iconSize + width: iconSize + height: iconSize + } + Label + { + id: label + height: icon.height + verticalAlignment: Text.AlignVCenter + } + } + + MouseArea + { + anchors.fill: row + onPressed: + { + entry.pressed(); + } + } +}