1bf52662ae
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.
38 lines
874 B
QML
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
|
|
}
|
|
}
|