1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 12:15:27 +00:00

Fix some alignment related warnings.

This commit is contained in:
Filippo Scognamiglio 2018-10-28 01:08:21 +02:00
parent 162f59d220
commit 2ea119fb31
6 changed files with 13 additions and 24 deletions

View File

@ -16,7 +16,7 @@ Window{
anchors.margins: 15
spacing: 15
Text {
anchors.horizontalCenter: parent.horizontalCenter
Layout.alignment: Qt.AlignHCenter
text: "cool-retro-term"
font {bold: true; pointSize: 18}
}
@ -69,13 +69,13 @@ Window{
Image{
Layout.fillWidth: true
Layout.fillHeight: true
anchors.horizontalCenter: parent.horizontalCenter
Layout.alignment: Qt.AlignHCenter
fillMode: Image.PreserveAspectFit
source: "images/crt256.png"
smooth: true
}
Text{
anchors.horizontalCenter: parent.horizontalCenter
Layout.alignment: Qt.AlignCenter
horizontalAlignment: Text.AlignHCenter
text: appSettings.version + "\n" +
qsTr("Author: ") + "Filippo Scognamiglio\n" +

View File

@ -35,8 +35,7 @@ RowLayout {
signal newValue(real newValue);
id: setting_component
anchors.left: parent.left
anchors.right: parent.right
Layout.fillWidth: true
onValueChanged: {
check.checked = !(value == 0);
@ -68,7 +67,7 @@ RowLayout {
}
}
SizedLabel {
anchors { top: parent.top; bottom: parent.bottom }
Layout.fillHeight: true
text: Math.round(((value - min_value) / (max_value - min_value)) * 100) + "%"
}
}

View File

@ -65,8 +65,7 @@ Window{
}
}
RowLayout{
anchors.right: parent.right
anchors.bottom: parent.bottom
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
Button{
id: okbutton
text: qsTr("OK")

View File

@ -27,7 +27,6 @@ Tab{
ColumnLayout{
anchors.fill: parent
GroupBox{
anchors {left: parent.left; right: parent.right}
Layout.fillWidth: true
Layout.fillHeight: true
title: qsTr("Profile")
@ -36,7 +35,7 @@ Tab{
TableView {
id: profilesView
Layout.fillWidth: true
anchors { top: parent.top; bottom: parent.bottom; }
Layout.fillHeight: true
model: appSettings.profilesList
headerVisible: false
TableViewColumn {
@ -49,7 +48,7 @@ Tab{
}
}
ColumnLayout {
anchors { top: parent.top; bottom: parent.bottom }
Layout.fillHeight: true
Layout.fillWidth: false
Button{
Layout.fillWidth: true
@ -161,7 +160,7 @@ Tab{
}
GroupBox{
anchors {left: parent.left; right: parent.right}
Layout.fillWidth: true
title: qsTr("Command")
ColumnLayout {
anchors.fill: parent
@ -179,7 +178,7 @@ Tab{
}
TextField{
id: customCommand
anchors {left: parent.left; right: parent.right}
Layout.fillWidth: true
text: appSettings.customCommand
enabled: useCustomCommand.checked
onEditingFinished: appSettings.customCommand = text

View File

@ -30,8 +30,6 @@ Tab{
GroupBox{
title: qsTr("General")
Layout.fillWidth: true
anchors.left: parent.left
anchors.right: parent.right
GridLayout{
anchors.fill: parent
rows: 2
@ -74,8 +72,6 @@ Tab{
GroupBox{
title: qsTr("Bloom")
Layout.fillWidth: true
anchors.left: parent.left
anchors.right: parent.right
GridLayout{
id: bloomQualityContainer
anchors.fill: parent
@ -98,8 +94,6 @@ Tab{
GroupBox{
title: qsTr("BurnIn")
Layout.fillWidth: true
anchors.left: parent.left
anchors.right: parent.right
GridLayout{
id: blurQualityContainer
anchors.fill: parent
@ -123,8 +117,6 @@ Tab{
GroupBox{
title: qsTr("Frame")
Layout.fillWidth: true
anchors.left: parent.left
anchors.right: parent.right
CheckBox{
checked: appSettings._frameReflections
text: qsTr("Frame Reflections")

View File

@ -29,8 +29,8 @@ Tab{
anchors.fill: parent
GroupBox{
property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization]
title: qsTr("Font" + "(" + rasterization + ")")
anchors { left: parent.left; right: parent.right }
title: qsTr("Font " + "(" + rasterization + ")")
Layout.fillWidth: true
GridLayout{
anchors.fill: parent
columns: 2
@ -103,7 +103,7 @@ Tab{
}
GroupBox{
title: qsTr("Colors")
anchors { left: parent.left; right: parent.right }
Layout.fillWidth: true
ColumnLayout{
anchors.fill: parent
ColumnLayout{