From: Luciano Montanaro Date: Tue, 25 Oct 2011 22:59:42 +0000 (+0200) Subject: Added a new InfoBar component X-Git-Tag: tags/0.4.81~51 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=4fd810fd8bd25b477933e275086d89daaeef0b28;p=quandoparte Added a new InfoBar component It is used in the station view to show the current station --- diff --git a/application/resources/harmattan/qml/InfoBar.qml b/application/resources/harmattan/qml/InfoBar.qml new file mode 100644 index 0000000..3df405e --- /dev/null +++ b/application/resources/harmattan/qml/InfoBar.qml @@ -0,0 +1,45 @@ +import QtQuick 1.0 +import com.nokia.meego 1.0 +import "uiconstants.js" as UiConstants + +BorderImage { + property alias text: label.text + width: parent.width + border.left: 10 + border.right: 10 + border.top: 10 + border.bottom: 10 + height: UiConstants.SearchBarDefaultHeight + source: style.background + + ToolBarStyle { + id: style + } + Item { + id: spacerTop + width: parent.width + height: UiConstants.DefaultMargins + } + Item { + id: spacerLeft + anchors.left: parent.left + width: UiConstants.DefaultMargins + height: searchField.height + } + Item { + id: spacerRight + anchors.right: parent.right + width: UiConstants.DefaultMargins + height: searchField.height + } + Label { + id: label + anchors.verticalCenter: parent.verticalCenter + anchors.left: spacerLeft.right + anchors.right: spacerRight.left + text: "Lorem Ipsum" + font { + pixelSize: UiConstants.HeaderFontPixelSize + } + } +}