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

Layout

parent f6c7f9e2
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ Window { ...@@ -142,7 +142,7 @@ Window {
Label { Label {
id: progressText id: progressText
text: "" text: ""
anchors.right: parent.right Layout.alignment: Qt.AlignRight
} }
} }
rejectButton.text: qsTr("Cancel") rejectButton.text: qsTr("Cancel")
......
...@@ -2,7 +2,7 @@ import QtQuick 2.0 ...@@ -2,7 +2,7 @@ import QtQuick 2.0
import QtQuick.Layouts 1.0 import QtQuick.Layouts 1.0
import QtQuick.Controls 1.0 import QtQuick.Controls 1.0
ColumnLayout { RowLayout {
id: dialog id: dialog
visible: false visible: false
...@@ -26,66 +26,66 @@ ColumnLayout { ...@@ -26,66 +26,66 @@ ColumnLayout {
dialog.visible = false; dialog.visible = false;
} }
RowLayout { Image {
id: icon
source: ""
visible: source.toString() ? true : false
Layout.preferredWidth: 32
Layout.preferredHeight: 32
}
ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true
spacing: parent.spacing spacing: parent.spacing
Image { Label {
id: icon id: primaryText
source: "" text: ""
visible: source.toString() ? true : false visible: text ? true : false
Layout.preferredWidth: 32 Layout.fillWidth: true
Layout.preferredHeight: 32 wrapMode: Text.WrapAnywhere
font.bold: true
} }
ColumnLayout { Label {
id: informativeText
text: ""
visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
}
Item {
Layout.fillHeight: true
}
Label {
id: detailedText
text: ""
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 Layout.fillWidth: true
spacing: parent.spacing spacing: parent.spacing
Label { Item {
id: primaryText
text: ""
visible: text ? true : false
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
} }
Label { Button {
id: detailedText id: rejectButton
text: "" text: ""
visible: text ? true : false visible: text ? true : false
Layout.fillWidth: true
wrapMode: Text.WrapAnywhere
font.pixelSize: 11
}
Item {
id: content
Layout.fillWidth: true
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