QmlTest.qml 23.8 KB
Newer Older
Don Gagne's avatar
Don Gagne committed
1 2 3 4 5 6 7 8 9
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 {

10
    property var palette: QGCPalette { colorGroupEnabled: true }
11
    color: "white"
Don Gagne's avatar
Don Gagne committed
12

Don Gagne's avatar
Don Gagne committed
13
    Column {
Don Gagne's avatar
Don Gagne committed
14

Don Gagne's avatar
Don Gagne committed
15 16
        Row {
            ExclusiveGroup { id: themeGroup }
Don Gagne's avatar
Don Gagne committed
17

Don Gagne's avatar
Don Gagne committed
18 19 20 21 22
            QGCRadioButton {
                text: "Light"
                exclusiveGroup: themeGroup
                onClicked: { palette.globalTheme = QGCPalette.Light }
            }
Don Gagne's avatar
Don Gagne committed
23

Don Gagne's avatar
Don Gagne committed
24 25 26 27
            QGCRadioButton {
                text: "Dark"
                exclusiveGroup: themeGroup
                onClicked: { palette.globalTheme = QGCPalette.Dark }
Don Gagne's avatar
Don Gagne committed
28
            }
Don Gagne's avatar
Don Gagne committed
29 30 31 32 33 34
        }

        Row {
            spacing: 30

            Grid {
35
                columns: 5
Don Gagne's avatar
Don Gagne committed
36 37 38 39 40 41 42 43 44 45
                spacing: 5

                Component {
                    id: rowHeader

                    Text {
                        width: 180
                        height: 20
                        horizontalAlignment: Text.AlignRight
                        verticalAlignment: Text.AlignVCenter
46
                        color: "black"
Don Gagne's avatar
Don Gagne committed
47 48 49
                        text: parent.text
                    }
                }
Don Gagne's avatar
Don Gagne committed
50

Don Gagne's avatar
Don Gagne committed
51 52 53 54 55
                // Header row
                Loader {
                    sourceComponent: rowHeader
                    property var text: ""
                }
Don Gagne's avatar
Don Gagne committed
56
                Text {
Don Gagne's avatar
Don Gagne committed
57
                    width: 80
Don Gagne's avatar
Don Gagne committed
58
                    height: 20
59
                    color: "black"
Don Gagne's avatar
Don Gagne committed
60 61 62 63 64 65
                    horizontalAlignment: Text.AlignHCenter
                    text: "Disabled"
                }
                Text {
                    width: 80
                    height: 20
66
                    color: "black"
Don Gagne's avatar
Don Gagne committed
67 68
                    horizontalAlignment: Text.AlignHCenter
                    text: "Enabled"
Don Gagne's avatar
Don Gagne committed
69
                }
70 71 72 73 74 75 76 77 78 79 80 81 82 83
                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
84

Don Gagne's avatar
Don Gagne committed
85 86 87 88 89
                // window
                Loader {
                    sourceComponent: rowHeader
                    property var text: "window"
                }
90
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
91
                    property var palette: QGCPalette { colorGroupEnabled: false }
92 93
                    color: palette.window
                    onColorSelected: palette.window = color
Don Gagne's avatar
Don Gagne committed
94
                }
95
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
96
                    property var palette: QGCPalette { colorGroupEnabled: true }
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
                    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
115
                }
Don Gagne's avatar
Don Gagne committed
116

Don Gagne's avatar
Don Gagne committed
117 118 119 120 121
                // windowShade
                Loader {
                    sourceComponent: rowHeader
                    property var text: "windowShade"
                }
122
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
123
                    property var palette: QGCPalette { colorGroupEnabled: false }
124 125
                    color: palette.windowShade
                    onColorSelected: palette.windowShade = color
Don Gagne's avatar
Don Gagne committed
126
                }
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
                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
145
                    property var palette: QGCPalette { colorGroupEnabled: true }
146
                    text: palette.windowShade
Don Gagne's avatar
Don Gagne committed
147
                }
Don Gagne's avatar
Don Gagne committed
148

Don Gagne's avatar
Don Gagne committed
149 150 151 152 153
                // windowShadeDark
                Loader {
                    sourceComponent: rowHeader
                    property var text: "windowShadeDark"
                }
154
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
155
                    property var palette: QGCPalette { colorGroupEnabled: false }
156 157
                    color: palette.windowShadeDark
                    onColorSelected: palette.windowShadeDark = color
Don Gagne's avatar
Don Gagne committed
158
                }
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
                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
177
                    property var palette: QGCPalette { colorGroupEnabled: true }
178
                    text: palette.windowShadeDark
Don Gagne's avatar
Don Gagne committed
179
                }
Don Gagne's avatar
Don Gagne committed
180

Don Gagne's avatar
Don Gagne committed
181 182 183 184 185
                // text
                Loader {
                    sourceComponent: rowHeader
                    property var text: "text"
                }
186
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
187
                    property var palette: QGCPalette { colorGroupEnabled: false }
188 189
                    color: palette.text
                    onColorSelected: palette.text = color
Don Gagne's avatar
Don Gagne committed
190
                }
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
                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
209
                    property var palette: QGCPalette { colorGroupEnabled: true }
210
                    text: palette.text
Don Gagne's avatar
Don Gagne committed
211
                }
Don Gagne's avatar
Don Gagne committed
212

Don Gagne's avatar
Don Gagne committed
213 214 215 216 217
                // button
                Loader {
                    sourceComponent: rowHeader
                    property var text: "button"
                }
218
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
219
                    property var palette: QGCPalette { colorGroupEnabled: false }
220 221
                    color: palette.button
                    onColorSelected: palette.button = color
Don Gagne's avatar
Don Gagne committed
222
                }
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
                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
241
                    property var palette: QGCPalette { colorGroupEnabled: true }
242
                    text: palette.button
Don Gagne's avatar
Don Gagne committed
243
                }
Don Gagne's avatar
Don Gagne committed
244

Don Gagne's avatar
Don Gagne committed
245 246 247 248 249
                // buttonText
                Loader {
                    sourceComponent: rowHeader
                    property var text: "buttonText"
                }
250
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
251
                    property var palette: QGCPalette { colorGroupEnabled: false }
252 253
                    color: palette.buttonText
                    onColorSelected: palette.buttonText = color
Don Gagne's avatar
Don Gagne committed
254
                }
255
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
256
                    property var palette: QGCPalette { colorGroupEnabled: true }
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
                    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
275
                }
276

Don Gagne's avatar
Don Gagne committed
277 278 279 280 281
                // buttonHighlight
                Loader {
                    sourceComponent: rowHeader
                    property var text: "buttonHighlight"
                }
282
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
283
                    property var palette: QGCPalette { colorGroupEnabled: false }
284 285
                    color: palette.buttonHighlight
                    onColorSelected: palette.buttonHighlight = color
Don Gagne's avatar
Don Gagne committed
286
                }
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
                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
305
                    property var palette: QGCPalette { colorGroupEnabled: true }
306
                    text: palette.buttonHighlight
Don Gagne's avatar
Don Gagne committed
307
                }
Don Gagne's avatar
Don Gagne committed
308

Don Gagne's avatar
Don Gagne committed
309 310 311 312 313
                // buttonHighlightText
                Loader {
                    sourceComponent: rowHeader
                    property var text: "buttonHighlightText"
                }
314
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
315
                    property var palette: QGCPalette { colorGroupEnabled: false }
316 317
                    color: palette.buttonHighlightText
                    onColorSelected: palette.buttonHighlightText = color
Don Gagne's avatar
Don Gagne committed
318
                }
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
                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
337
                    property var palette: QGCPalette { colorGroupEnabled: true }
338
                    text: palette.buttonHighlightText
Don Gagne's avatar
Don Gagne committed
339
                }
Don Gagne's avatar
Don Gagne committed
340

Don Gagne's avatar
Don Gagne committed
341 342 343 344 345
                // primaryButton
                Loader {
                    sourceComponent: rowHeader
                    property var text: "primaryButton"
                }
346
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
347
                    property var palette: QGCPalette { colorGroupEnabled: false }
348 349
                    color: palette.primaryButton
                    onColorSelected: palette.primaryButton = color
Don Gagne's avatar
Don Gagne committed
350
                }
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368
                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
369
                    property var palette: QGCPalette { colorGroupEnabled: true }
370
                    text: palette.primaryButton
Don Gagne's avatar
Don Gagne committed
371
                }
Don Gagne's avatar
Don Gagne committed
372

Don Gagne's avatar
Don Gagne committed
373 374 375 376 377
                // primaryButtonText
                Loader {
                    sourceComponent: rowHeader
                    property var text: "primaryButtonText"
                }
378
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
379
                    property var palette: QGCPalette { colorGroupEnabled: false }
380 381
                    color: palette.primaryButtonText
                    onColorSelected: palette.primaryButtonText = color
Don Gagne's avatar
Don Gagne committed
382
                }
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
                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
401
                    property var palette: QGCPalette { colorGroupEnabled: true }
402
                    text: palette.primaryButtonText
Don Gagne's avatar
Don Gagne committed
403
                }
Don Gagne's avatar
Don Gagne committed
404

Don Gagne's avatar
Don Gagne committed
405 406 407 408 409
                // textField
                Loader {
                    sourceComponent: rowHeader
                    property var text: "textField"
                }
410
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
411
                    property var palette: QGCPalette { colorGroupEnabled: false }
412 413
                    color: palette.textField
                    onColorSelected: palette.textField = color
Don Gagne's avatar
Don Gagne committed
414
                }
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432
                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
433
                    property var palette: QGCPalette { colorGroupEnabled: true }
434
                    text: palette.textField
Don Gagne's avatar
Don Gagne committed
435
                }
436

Don Gagne's avatar
Don Gagne committed
437 438 439 440 441
                // textFieldText
                Loader {
                    sourceComponent: rowHeader
                    property var text: "textFieldText"
                }
442
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
443
                    property var palette: QGCPalette { colorGroupEnabled: false }
444 445
                    color: palette.textFieldText
                    onColorSelected: palette.textFieldText = color
Don Gagne's avatar
Don Gagne committed
446
                }
447
                ClickableColor {
Don Gagne's avatar
Don Gagne committed
448
                    property var palette: QGCPalette { colorGroupEnabled: true }
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
                    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
467
                }
Don Gagne's avatar
Don Gagne committed
468
            }
469

Don Gagne's avatar
Don Gagne committed
470 471 472
            Grid {
                columns: 3
                spacing: 10
Don Gagne's avatar
Don Gagne committed
473

Don Gagne's avatar
Don Gagne committed
474 475
                Component {
                    id: ctlRowHeader
Don Gagne's avatar
Don Gagne committed
476

Don Gagne's avatar
Don Gagne committed
477 478 479 480 481
                    Text {
                        width: 120
                        height: 20
                        horizontalAlignment: Text.AlignRight
                        verticalAlignment: Text.AlignVCenter
482
                        color: "black"
Don Gagne's avatar
Don Gagne committed
483 484 485
                        text: parent.text
                    }
                }
Don Gagne's avatar
Don Gagne committed
486 487


Don Gagne's avatar
Don Gagne committed
488 489 490 491 492
                // Header row
                Loader {
                    sourceComponent: ctlRowHeader
                    property var text: ""
                }
Don Gagne's avatar
Don Gagne committed
493
                Text {
Don Gagne's avatar
Don Gagne committed
494
                    width: 100
Don Gagne's avatar
Don Gagne committed
495
                    height: 20
496
                    color: "black"
Don Gagne's avatar
Don Gagne committed
497 498 499 500 501 502
                    horizontalAlignment: Text.AlignHCenter
                    text: "Enabled"
                }
                Text {
                    width: 100
                    height: 20
503
                    color: "black"
Don Gagne's avatar
Don Gagne committed
504 505
                    horizontalAlignment: Text.AlignHCenter
                    text: "Disabled"
Don Gagne's avatar
Don Gagne committed
506 507
                }

Don Gagne's avatar
Don Gagne committed
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
                // 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
524

Don Gagne's avatar
Don Gagne committed
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540
                // 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
541

Don Gagne's avatar
Don Gagne committed
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
                // 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
                }
560

561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
                // 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
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
                // 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
608

Don Gagne's avatar
Don Gagne committed
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
                // 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
625

Don Gagne's avatar
Don Gagne committed
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
                // QGCTextField
                Loader {
                    sourceComponent: ctlRowHeader
                    property var text: "QGCTextField"
                }
                QGCTextField {
                    width: 100
                    height: 20
                    text: "QGCTextField"
                }
                QGCTextField {
                    width: 100
                    height: 20
                    text: "QGCTextField"
                    enabled: false
                }
642

643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
                // 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
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
                // 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
                }
676
            }
Don Gagne's avatar
Don Gagne committed
677 678 679
        }
    }
}