import QtQuick 2.2
import QtQuick.Controls 1.1

ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Test Window")

    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            MenuItem {
                text: qsTr("Exit")
                onTriggered: Qt.quit();
            }
            Menu {
                title: "Sub-menu"
                enabled: false
                MenuItem { text: "Option 1" }
                MenuItem { text: "Option 2" }
            }
        }
        Menu {
            title: qsTr("Edit")
            enabled: false
            MenuItem { text: "Should be hidden"; enabled: false }
            MenuItem { text: "Also should be hidden"; enabled: false }
        }
    }

    Text {
        text: qsTr("Hello World")
        anchors.centerIn: parent
    }
}
