Fix button layout in the setup wizard
This commit is contained in:
parent
f9730626ad
commit
95e3576906
@ -61,7 +61,7 @@ ToolBar {
|
|||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
font.pixelSize: app.mediumFont
|
font.pixelSize: app.mediumFont
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: qsTr("menu")
|
text: qsTr("Menu")
|
||||||
color: app.headerForegroundColor
|
color: app.headerForegroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -175,6 +175,7 @@ Page {
|
|||||||
ListView {
|
ListView {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
clip: true
|
||||||
model: DeviceDiscoveryProxy {
|
model: DeviceDiscoveryProxy {
|
||||||
id: discoveryProxy
|
id: discoveryProxy
|
||||||
deviceDiscovery: discovery
|
deviceDiscovery: discovery
|
||||||
@ -222,7 +223,7 @@ Page {
|
|||||||
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
|
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
|
||||||
text: qsTr("Search again")
|
text: qsTr("Search again")
|
||||||
onClicked: discovery.discoverDevices(root.deviceClass.id, d.discoveryParams)
|
onClicked: discovery.discoverDevices(root.deviceClass.id, d.discoveryParams)
|
||||||
visible: !discovery.busy && discoveryProxy.count > 0
|
visible: !discovery.busy
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@ -274,13 +275,6 @@ Page {
|
|||||||
text: qsTr("Make sure your things are set up and connected, try searching again or go back and pick a different kind of thing.")
|
text: qsTr("Make sure your things are set up and connected, try searching again or go back and pick a different kind of thing.")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
Button {
|
|
||||||
text: qsTr("Try again!")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
onClicked: {
|
|
||||||
discovery.discoverDevices(root.deviceClass.id, d.discoveryParams)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user