qmlFrontend/qml/qmlFrontend/HWComboBox.qml
branchqmlfrontend
changeset 10519 af019fa70080
child 10608 b85759f2ba18
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qmlFrontend/qml/qmlFrontend/HWComboBox.qml	Sat Nov 22 00:55:01 2014 +0300
@@ -0,0 +1,23 @@
+import QtQuick 2.0
+import QtQuick.Window 2.1
+
+HWButton {
+    property alias model: itemsList.model
+    property alias delegate: itemsList.delegate
+
+    Window {
+        id: selection
+        visibility: Window.Hidden
+
+        ListView {
+            id: itemsList
+            x: 0
+            y: 64
+            anchors.fill: parent
+            highlight: Rectangle { color: "#eaea00"; radius: 4 }
+            focus: true
+        }
+    }
+
+    onClicked: selection.visibility = Window.Windowed
+}