Skip to content
Snippets Groups Projects
Commit cacdeba9 authored by akiraohgaki's avatar akiraohgaki
Browse files

Fix layout

parent 38fb1eac
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ ApplicationWindow { ...@@ -130,7 +130,7 @@ ApplicationWindow {
property alias progressText: progressText.text property alias progressText: progressText.text
content: ColumnLayout { content: ColumnLayout {
anchors.fill: parent anchors.fill: parent
spacing: 8 spacing: 4
ProgressBar { ProgressBar {
id: progressBar id: progressBar
minimumValue: 0 minimumValue: 0
......
...@@ -2,13 +2,13 @@ import QtQuick 2.0 ...@@ -2,13 +2,13 @@ import QtQuick 2.0
import QtQuick.Layouts 1.0 import QtQuick.Layouts 1.0
import QtQuick.Controls 1.0 import QtQuick.Controls 1.0
RowLayout { ColumnLayout {
id: dialog id: dialog
visible: false visible: false
anchors.fill: parent anchors.fill: parent
anchors.margins: 12 anchors.margins: 12
spacing: 8 spacing: 12
property alias icon: icon.source property alias icon: icon.source
property alias primaryText: primaryText.text property alias primaryText: primaryText.text
...@@ -26,66 +26,70 @@ RowLayout { ...@@ -26,66 +26,70 @@ RowLayout {
dialog.visible = false; dialog.visible = false;
} }
Image { RowLayout {
id: icon Layout.fillWidth: true
source: "" spacing: 12
visible: source.toString() ? true : false Image {
Layout.preferredWidth: 32 id: icon
Layout.preferredHeight: 32 source: ""
visible: source.toString() ? true : false
Layout.preferredWidth: 32
Layout.preferredHeight: 32
}
ColumnLayout {
Layout.fillWidth: true
spacing: 4
Label {
id: primaryText
text: ""
visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
font.bold: true
}
Label {
id: informativeText
text: ""
visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
}
}
} }
ColumnLayout { Label {
id: detailedText
text: ""
visible: text ? true : false
Layout.fillWidth: true Layout.fillWidth: true
spacing: parent.spacing wrapMode: Text.WrapAnywhere
Label { color: "#444444"
id: primaryText }
text: ""
visible: text ? true : false Item {
id: content
Layout.fillWidth: true
}
Item {
Layout.fillHeight: true
}
RowLayout {
Layout.fillWidth: true
spacing: 4
Item {
Layout.fillWidth: true Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
font.bold: true
} }
Label { Button {
id: informativeText id: acceptButton
text: "" text: ""
visible: text ? true : false visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
} }
Item { Button {
Layout.fillHeight: true id: rejectButton
}
Label {
id: detailedText
text: "" text: ""
visible: text ? true : false visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
color: "#444444"
}
Item {
id: content
Layout.fillWidth: true
}
Item {
Layout.fillHeight: true
}
RowLayout {
Layout.fillWidth: true
spacing: parent.spacing
Item {
Layout.fillWidth: true
}
Button {
id: acceptButton
text: ""
visible: text ? true : false
}
Button {
id: rejectButton
text: ""
visible: text ? true : false
}
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment