Skip to content
Snippets Groups Projects
QmlTest.qml 25.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • Don Gagne's avatar
    Don Gagne committed
    import QtQuick 2.2
    import QtQuick.Controls 1.2
    import QtQuick.Controls.Styles 1.2
    
    import QGroundControl.Palette 1.0
    import QGroundControl.Controls 1.0
    
    Rectangle {
    
    
        property var palette: QGCPalette { colorGroupEnabled: true }
    
        color: "white"
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
        Column {
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    dogmaphobic's avatar
    dogmaphobic committed
            Rectangle {
                width:  parent.width
                height: themeChoice.height * 2
                color:  palette.window
                QGCLabel {
                    text: "Window Color"
                    anchors.left:           parent.left
                    anchors.leftMargin:     20
                    anchors.verticalCenter: parent.horizontalCenter
    
    Don Gagne's avatar
    Don Gagne committed
                }
    
    dogmaphobic's avatar
    dogmaphobic committed
                Row {
                    id: themeChoice
                    anchors.centerIn: parent
                    anchors.margins: 20
                    spacing:         20
                    ExclusiveGroup { id: themeGroup }
                    QGCRadioButton {
                        text: "Light"
                        checked: palette.globalTheme === QGCPalette.Light
                        exclusiveGroup: themeGroup
                        onClicked: { palette.globalTheme = QGCPalette.Light }
                    }
                    QGCRadioButton {
                        text: "Dark"
                        checked: palette.globalTheme === QGCPalette.Dark
                        exclusiveGroup: themeGroup
                        onClicked: { palette.globalTheme = QGCPalette.Dark }
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                }
    
    Don Gagne's avatar
    Don Gagne committed
            }
    
            Row {
                spacing: 30
    
                Grid {
    
                    columns: 5
    
    Don Gagne's avatar
    Don Gagne committed
                    spacing: 5
    
                    Component {
                        id: rowHeader
    
                        Text {
                            width: 180
                            height: 20
                            horizontalAlignment: Text.AlignRight
                            verticalAlignment: Text.AlignVCenter
    
                            color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                            text: parent.text
                        }
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // Header row
                    Loader {
                        sourceComponent: rowHeader
                        property var text: ""
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                    Text {
    
    Don Gagne's avatar
    Don Gagne committed
                        width: 80
    
    Don Gagne's avatar
    Don Gagne committed
                        height: 20
    
                        color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                        horizontalAlignment: Text.AlignHCenter
                        text: "Disabled"
                    }
                    Text {
                        width: 80
                        height: 20
    
                        color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                        horizontalAlignment: Text.AlignHCenter
                        text: "Enabled"
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        text: "Value"
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        text: "Value"
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // window
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "window"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.window
                        onColorSelected: palette.window = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        color: palette.window
                        onColorSelected: palette.window = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.window
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        text: palette.window
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // windowShade
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "windowShade"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.windowShade
                        onColorSelected: palette.windowShade = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.windowShade
                        onColorSelected: palette.windowShade = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.windowShade
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.windowShade
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // windowShadeDark
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "windowShadeDark"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.windowShadeDark
                        onColorSelected: palette.windowShadeDark = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.windowShadeDark
                        onColorSelected: palette.windowShadeDark = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.windowShadeDark
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.windowShadeDark
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // text
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "text"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.text
                        onColorSelected: palette.text = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.text
                        onColorSelected: palette.text = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.text
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.text
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // button
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "button"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.button
                        onColorSelected: palette.button = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.button
                        onColorSelected: palette.button = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.button
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.button
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // buttonText
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "buttonText"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.buttonText
                        onColorSelected: palette.buttonText = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        color: palette.buttonText
                        onColorSelected: palette.buttonText = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.buttonText
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        text: palette.buttonText
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                    // buttonHighlight
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "buttonHighlight"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.buttonHighlight
                        onColorSelected: palette.buttonHighlight = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.buttonHighlight
                        onColorSelected: palette.buttonHighlight = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.buttonHighlight
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.buttonHighlight
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // buttonHighlightText
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "buttonHighlightText"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.buttonHighlightText
                        onColorSelected: palette.buttonHighlightText = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.buttonHighlightText
                        onColorSelected: palette.buttonHighlightText = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.buttonHighlightText
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.buttonHighlightText
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // primaryButton
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "primaryButton"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.primaryButton
                        onColorSelected: palette.primaryButton = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.primaryButton
                        onColorSelected: palette.primaryButton = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.primaryButton
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.primaryButton
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // primaryButtonText
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "primaryButtonText"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.primaryButtonText
                        onColorSelected: palette.primaryButtonText = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.primaryButtonText
                        onColorSelected: palette.primaryButtonText = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.primaryButtonText
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.primaryButtonText
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // textField
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "textField"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.textField
                        onColorSelected: palette.textField = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.textField
                        onColorSelected: palette.textField = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.textField
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        text: palette.textField
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                    // textFieldText
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "textFieldText"
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: false }
    
                        color: palette.textFieldText
                        onColorSelected: palette.textFieldText = color
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
                    ClickableColor {
    
    Don Gagne's avatar
    Don Gagne committed
                        property var palette: QGCPalette { colorGroupEnabled: true }
    
                        color: palette.textFieldText
                        onColorSelected: palette.textFieldText = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.textFieldText
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        text: palette.textFieldText
    
    Don Gagne's avatar
    Don Gagne committed
                    }
    
    dogmaphobic's avatar
    dogmaphobic committed
    
                    // warningText
                    Loader {
                        sourceComponent: rowHeader
                        property var text: "warningText"
                    }
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        color: palette.warningText
                        onColorSelected: palette.warningText = color
                    }
                    ClickableColor {
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        color: palette.warningText
                        onColorSelected: palette.warningText = color
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: false }
                        text: palette.warningText
                    }
                    Text {
                        width: 80
                        height: 20
                        color: "black"
                        horizontalAlignment: Text.AlignHCenter
                        property var palette: QGCPalette { colorGroupEnabled: true }
                        text: palette.warningText
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                }
    
    Don Gagne's avatar
    Don Gagne committed
                Grid {
                    columns: 3
                    spacing: 10
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    Component {
                        id: ctlRowHeader
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                        Text {
                            width: 120
                            height: 20
                            horizontalAlignment: Text.AlignRight
                            verticalAlignment: Text.AlignVCenter
    
                            color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                            text: parent.text
                        }
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                    // Header row
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: ""
                    }
    
    Don Gagne's avatar
    Don Gagne committed
                    Text {
    
    Don Gagne's avatar
    Don Gagne committed
                        width: 100
    
    Don Gagne's avatar
    Don Gagne committed
                        height: 20
    
                        color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                        horizontalAlignment: Text.AlignHCenter
                        text: "Enabled"
                    }
                    Text {
                        width: 100
                        height: 20
    
                        color: "black"
    
    Don Gagne's avatar
    Don Gagne committed
                        horizontalAlignment: Text.AlignHCenter
                        text: "Disabled"
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCLabel
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCLabel"
                    }
                    QGCLabel {
                        width: 100
                        height: 20
                        text: "Label"
                    }
                    QGCLabel {
                        width: 100
                        height: 20
                        text: "Label"
                        enabled: false
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCButton
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCButton"
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        text: "Button"
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        text: "Button"
                        enabled: false
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCButton - primary
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCButton(primary)"
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        primary: true
                        text: "Button"
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        text: "Button"
                        primary: true
                        enabled: false
                    }
    
                    // QGCButton - menu
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCButton(menu)"
                    }
                    Menu {
                        id: buttonMenu
                        MenuItem {
                            text: "Item 1"
                        }
                        MenuItem {
                            text: "Item 2"
                        }
                        MenuItem {
                            text: "Item 3"
                        }
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        text: "Button"
                        menu: buttonMenu
                    }
                    QGCButton {
                        width: 100
                        height: 20
                        text: "Button"
                        enabled: false
                        menu: buttonMenu
                    }
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCRadioButton
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCRadioButton"
                    }
                    QGCRadioButton {
                        width: 100
                        height: 20
                        text: "Radio"
                    }
                    QGCRadioButton {
                        width: 100
                        height: 20
                        text: "Radio"
                        enabled: false
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCCheckBox
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCCheckBox"
                    }
                    QGCCheckBox {
                        width: 100
                        height: 20
                        text: "Check Box"
                    }
                    QGCCheckBox {
                        width: 100
                        height: 20
                        text: "Check Box"
                        enabled: false
                    }
    
    Don Gagne's avatar
    Don Gagne committed
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // QGCTextField
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCTextField"
                    }
                    QGCTextField {
                        width: 100
                        height: 20
                        text: "QGCTextField"
                    }
                    QGCTextField {
                        width: 100
                        height: 20
                        text: "QGCTextField"
                        enabled: false
                    }
    
                    // QGCComboBox
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "QGCComboBox"
                    }
                    QGCComboBox {
                        width: 100
                        height: 20
                        model: [ "Item 1", "Item 2", "Item 3" ]
                    }
                    QGCComboBox {
                        width: 100
                        height: 20
                        model: [ "Item 1", "Item 2", "Item 3" ]
                        enabled: false
                    }
    
    
    Don Gagne's avatar
    Don Gagne committed
                    // SubMenuButton
                    Loader {
                        sourceComponent: ctlRowHeader
                        property var text: "SubMenuButton"
                    }
                    SubMenuButton {
                        width: 100
                        height: 100
                        text: "SUB MENU"
                    }
                    SubMenuButton {
                        width: 100
                        height: 100
                        text: "SUB MENU"
                        enabled: false
                    }