2 import com.nokia.meego 1.0
3 import com.nokia.extras 1.0
4 import "uiconstants.js" as UiConstants
7 property alias text: label.text
8 property alias options: dialog.model
9 property alias selectedIndex: dialog.selectedIndex
13 height: screen.currentOrientation == Screen.Landscape ?
14 UiConstants.HeaderDefaultHeightLandscape :
15 UiConstants.HeaderDefaultHeightPortrait
17 GradientStop { color: mouse.pressed ? "#040" : "#061"; position: 0.0 }
18 GradientStop { color: "#0a2"; position: 1.0 }
27 anchors.left: parent.left
28 width: UiConstants.DefaultMargins
33 anchors.left: spacer.right
34 anchors.verticalCenter: parent.verticalCenter
36 pixelSize: UiConstants.HeaderFontPixelSize
39 color: style.textColor
44 onClicked: dialog.open()
50 anchors { right: (label.text != "") ? parent.right : undefined;
51 rightMargin: UiConstants.DefaultMargins;
52 horizontalCenter: (label.text != "") ? undefined : parent.horizontalCenter;
53 verticalCenter: parent.verticalCenter;
56 source: "image://theme/meegotouch-combobox-indicator" +
57 (style.inverted ? "-inverted" : "") +
58 (root.enabled ? "" : "-disabled") +
59 (mouse.pressed ? "-pressed" : "")
63 titleText: qsTr("Show")