1
0
Fork 0
flightgear/src/GUI/qml/SettingsComboBox.qml
James Turner 1bf52662ae Launcher converted to QQ2
This simplifies the launcher's rendering since the widget-based
code is gone, various things get hooked up as a result. Styling
fixes everywhere as well.

Menubar on Linux/Windows needs to be re-added.
2018-06-23 17:14:21 +01:00

33 lines
779 B
QML

import QtQuick 2.4
import "."
SettingControl {
id: root
property alias choices: popup.model
property alias displayRole: popup.displayRole
property alias selectedIndex: popup.currentIndex
property int defaultIndex: 0
// alias for save+restore
property alias value: popup.currentIndex
property alias defaultValue: root.defaultIndex
implicitHeight: popup.height + Style.margin + description.height
PopupChoice {
id: popup
label: root.label
enabled: root.enabled
width: root.width
}
SettingDescription {
id: description
enabled: root.enabled
text: root.description
anchors.top: popup.bottom
anchors.topMargin: Style.margin
width: root.width
}
}