import QtQuick 2.7
import QtQuick.Window 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
Window {
visible: true
width: 300
height: 300
title: qsTr("Hello World")
ColumnLayout {
anchors.centerIn: parent
Switch {
id: enabledSwitch
}
RowLayout {
enabled: enabledSwitch.checked
Layout.fillWidth: true
Label {
text: qsTr("Tile Width")
Layout.fillWidth: true
}
SpinBox {
from: 1
value: 32
editable: true
hoverEnabled: true
ToolTip.text: qsTr("How wide each tile is in pixels")
ToolTip.visible: hovered
}
}
RowLayout {
enabled: enabledSwitch.checked
Label {
text: qsTr("Tile Height")
Layout.fillWidth: true
}
SpinBox {
from: 1
value: 32
editable: true
hoverEnabled: true
Layout.alignment: Qt.AlignRight
ToolTip.text: qsTr("How high each tile is in pixels")
ToolTip.visible: hovered
}
}
RowLayout {
enabled: enabledSwitch.checked
Label {
text: qsTr("Blah Blah")
Layout.fillWidth: true
}
SpinBox {
from: 1
value: 32
editable: true
hoverEnabled: true
Layout.alignment: Qt.AlignRight
ToolTip.text: qsTr("How blah each blah is in blahs")
ToolTip.visible: hovered
}
}
}
}