mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: improve preferences layout
And make it resolution independent. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ac074bf239
commit
57e9784d27
1 changed files with 22 additions and 25 deletions
|
@ -16,20 +16,15 @@ Window {
|
|||
|
||||
flags: Qt.Dialog
|
||||
modality: Qt.WindowModal
|
||||
width: 400
|
||||
height: 160
|
||||
|
||||
minimumHeight: 160
|
||||
minimumWidth: 400
|
||||
|
||||
title: "Enter your Subsurface cloud credentials"
|
||||
|
||||
GridLayout {
|
||||
columns: 2
|
||||
anchors.fill: parent
|
||||
anchors.margins: 10
|
||||
rowSpacing: 10
|
||||
columnSpacing: 10
|
||||
anchors.centerIn: parent
|
||||
width: parent.width
|
||||
|
||||
Label {
|
||||
text: "Enter your Subsurface cloud credentials"
|
||||
Layout.columnSpan: 2
|
||||
}
|
||||
|
||||
Label {
|
||||
text: "Email Address:"
|
||||
|
@ -61,19 +56,8 @@ Window {
|
|||
}
|
||||
|
||||
Item {
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: saveButton.height
|
||||
|
||||
Button {
|
||||
id: cancelButton
|
||||
text: "Cancel"
|
||||
|
||||
onClicked: {
|
||||
loginWindow.close();
|
||||
}
|
||||
}
|
||||
|
||||
height: childrenRect.height
|
||||
width: childrenRect.width
|
||||
Button {
|
||||
id: saveButton
|
||||
text: "Save"
|
||||
|
@ -87,5 +71,18 @@ Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
height: childrenRect.height
|
||||
width: childrenRect.width
|
||||
Button {
|
||||
id: cancelButton
|
||||
text: "Cancel"
|
||||
|
||||
onClicked: {
|
||||
loginWindow.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue