1
0
Fork 0
flightgear/src/GUI/qml/SettingLineEdit.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

38 lines
874 B
QML

import QtQuick 2.4
import "."
SettingControl {
id: root
implicitHeight: edit.height + Style.margin + description.height
property alias placeholder: edit.placeholder
property alias validation: edit.validator
property alias value: edit.text
property alias suggestedWidthString: edit.suggestedWidthString
property alias useFullWidth: edit.useFullWidth
property string defaultValue: ""
function apply()
{
if (option != "") {
_config.setArg(option, value)
}
}
LineEdit {
id: edit
label: root.label
width: parent.width
enabled: root.enabled
}
SettingDescription {
id: description
enabled: root.enabled
text: root.description
anchors.top: edit.bottom
anchors.topMargin: Style.margin
width: parent.width
}
}