qmlFrontend/qml/qmlFrontend/HWComboBox.qml
author unc0rr
Wed, 03 Dec 2014 00:20:21 +0300
branchqmlfrontend
changeset 10608 b85759f2ba18
parent 10519 af019fa70080
child 10610 eadf2cea55e0
permissions -rw-r--r--
Some more progress at custom combobox

import QtQuick 2.0
import QtQuick.Window 2.1

HWButton {
    property alias model: itemsList.model
    property alias delegate: itemsList.delegate
    property alias currentIndex: itemsList.currentIndex

    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
}