mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 09:02:14 +00:00 
			
		
		
		
	Fix some alignment related warnings.
This commit is contained in:
		@@ -16,7 +16,7 @@ Window{
 | 
				
			|||||||
        anchors.margins: 15
 | 
					        anchors.margins: 15
 | 
				
			||||||
        spacing: 15
 | 
					        spacing: 15
 | 
				
			||||||
        Text {
 | 
					        Text {
 | 
				
			||||||
            anchors.horizontalCenter: parent.horizontalCenter
 | 
					            Layout.alignment: Qt.AlignHCenter
 | 
				
			||||||
            text: "cool-retro-term"
 | 
					            text: "cool-retro-term"
 | 
				
			||||||
            font {bold: true; pointSize: 18}
 | 
					            font {bold: true; pointSize: 18}
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -69,13 +69,13 @@ Window{
 | 
				
			|||||||
            Image{
 | 
					            Image{
 | 
				
			||||||
                Layout.fillWidth: true
 | 
					                Layout.fillWidth: true
 | 
				
			||||||
                Layout.fillHeight: true
 | 
					                Layout.fillHeight: true
 | 
				
			||||||
                anchors.horizontalCenter: parent.horizontalCenter
 | 
					                Layout.alignment: Qt.AlignHCenter
 | 
				
			||||||
                fillMode: Image.PreserveAspectFit
 | 
					                fillMode: Image.PreserveAspectFit
 | 
				
			||||||
                source: "images/crt256.png"
 | 
					                source: "images/crt256.png"
 | 
				
			||||||
                smooth: true
 | 
					                smooth: true
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            Text{
 | 
					            Text{
 | 
				
			||||||
                anchors.horizontalCenter: parent.horizontalCenter
 | 
					                Layout.alignment: Qt.AlignCenter
 | 
				
			||||||
                horizontalAlignment: Text.AlignHCenter
 | 
					                horizontalAlignment: Text.AlignHCenter
 | 
				
			||||||
                text: appSettings.version + "\n" +
 | 
					                text: appSettings.version + "\n" +
 | 
				
			||||||
                      qsTr("Author: ") + "Filippo Scognamiglio\n" +
 | 
					                      qsTr("Author: ") + "Filippo Scognamiglio\n" +
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,8 +35,7 @@ RowLayout {
 | 
				
			|||||||
    signal newValue(real newValue);
 | 
					    signal newValue(real newValue);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    id: setting_component
 | 
					    id: setting_component
 | 
				
			||||||
    anchors.left: parent.left
 | 
					    Layout.fillWidth: true
 | 
				
			||||||
    anchors.right: parent.right
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    onValueChanged: {
 | 
					    onValueChanged: {
 | 
				
			||||||
        check.checked = !(value == 0);
 | 
					        check.checked = !(value == 0);
 | 
				
			||||||
@@ -68,7 +67,7 @@ RowLayout {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    SizedLabel {
 | 
					    SizedLabel {
 | 
				
			||||||
        anchors { top: parent.top; bottom: parent.bottom }
 | 
					        Layout.fillHeight: true
 | 
				
			||||||
        text: Math.round(((value - min_value) / (max_value - min_value)) * 100) + "%"
 | 
					        text: Math.round(((value - min_value) / (max_value - min_value)) * 100) + "%"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,8 +65,7 @@ Window{
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        RowLayout{
 | 
					        RowLayout{
 | 
				
			||||||
            anchors.right: parent.right
 | 
					            Layout.alignment: Qt.AlignBottom | Qt.AlignRight
 | 
				
			||||||
            anchors.bottom: parent.bottom
 | 
					 | 
				
			||||||
            Button{
 | 
					            Button{
 | 
				
			||||||
                id: okbutton
 | 
					                id: okbutton
 | 
				
			||||||
                text: qsTr("OK")
 | 
					                text: qsTr("OK")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,7 +27,6 @@ Tab{
 | 
				
			|||||||
    ColumnLayout{
 | 
					    ColumnLayout{
 | 
				
			||||||
        anchors.fill: parent
 | 
					        anchors.fill: parent
 | 
				
			||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            anchors {left: parent.left; right: parent.right}
 | 
					 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            Layout.fillHeight: true
 | 
					            Layout.fillHeight: true
 | 
				
			||||||
            title: qsTr("Profile")
 | 
					            title: qsTr("Profile")
 | 
				
			||||||
@@ -36,7 +35,7 @@ Tab{
 | 
				
			|||||||
                TableView {
 | 
					                TableView {
 | 
				
			||||||
                    id: profilesView
 | 
					                    id: profilesView
 | 
				
			||||||
                    Layout.fillWidth: true
 | 
					                    Layout.fillWidth: true
 | 
				
			||||||
                    anchors { top: parent.top; bottom: parent.bottom; }
 | 
					                    Layout.fillHeight: true
 | 
				
			||||||
                    model: appSettings.profilesList
 | 
					                    model: appSettings.profilesList
 | 
				
			||||||
                    headerVisible: false
 | 
					                    headerVisible: false
 | 
				
			||||||
                    TableViewColumn {
 | 
					                    TableViewColumn {
 | 
				
			||||||
@@ -49,7 +48,7 @@ Tab{
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                ColumnLayout {
 | 
					                ColumnLayout {
 | 
				
			||||||
                    anchors { top: parent.top; bottom: parent.bottom }
 | 
					                    Layout.fillHeight: true
 | 
				
			||||||
                    Layout.fillWidth: false
 | 
					                    Layout.fillWidth: false
 | 
				
			||||||
                    Button{
 | 
					                    Button{
 | 
				
			||||||
                        Layout.fillWidth: true
 | 
					                        Layout.fillWidth: true
 | 
				
			||||||
@@ -161,7 +160,7 @@ Tab{
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            anchors {left: parent.left; right: parent.right}
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            title: qsTr("Command")
 | 
					            title: qsTr("Command")
 | 
				
			||||||
            ColumnLayout {
 | 
					            ColumnLayout {
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
@@ -179,7 +178,7 @@ Tab{
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
                TextField{
 | 
					                TextField{
 | 
				
			||||||
                    id: customCommand
 | 
					                    id: customCommand
 | 
				
			||||||
                    anchors {left: parent.left; right: parent.right}
 | 
					                    Layout.fillWidth: true
 | 
				
			||||||
                    text: appSettings.customCommand
 | 
					                    text: appSettings.customCommand
 | 
				
			||||||
                    enabled: useCustomCommand.checked
 | 
					                    enabled: useCustomCommand.checked
 | 
				
			||||||
                    onEditingFinished: appSettings.customCommand = text
 | 
					                    onEditingFinished: appSettings.customCommand = text
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,8 +30,6 @@ Tab{
 | 
				
			|||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("General")
 | 
					            title: qsTr("General")
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            anchors.left: parent.left
 | 
					 | 
				
			||||||
            anchors.right: parent.right
 | 
					 | 
				
			||||||
            GridLayout{
 | 
					            GridLayout{
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
                rows: 2
 | 
					                rows: 2
 | 
				
			||||||
@@ -74,8 +72,6 @@ Tab{
 | 
				
			|||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("Bloom")
 | 
					            title: qsTr("Bloom")
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            anchors.left: parent.left
 | 
					 | 
				
			||||||
            anchors.right: parent.right
 | 
					 | 
				
			||||||
            GridLayout{
 | 
					            GridLayout{
 | 
				
			||||||
                id: bloomQualityContainer
 | 
					                id: bloomQualityContainer
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
@@ -98,8 +94,6 @@ Tab{
 | 
				
			|||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("BurnIn")
 | 
					            title: qsTr("BurnIn")
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            anchors.left: parent.left
 | 
					 | 
				
			||||||
            anchors.right: parent.right
 | 
					 | 
				
			||||||
            GridLayout{
 | 
					            GridLayout{
 | 
				
			||||||
                id: blurQualityContainer
 | 
					                id: blurQualityContainer
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
@@ -123,8 +117,6 @@ Tab{
 | 
				
			|||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("Frame")
 | 
					            title: qsTr("Frame")
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            anchors.left: parent.left
 | 
					 | 
				
			||||||
            anchors.right: parent.right
 | 
					 | 
				
			||||||
            CheckBox{
 | 
					            CheckBox{
 | 
				
			||||||
                checked: appSettings._frameReflections
 | 
					                checked: appSettings._frameReflections
 | 
				
			||||||
                text: qsTr("Frame Reflections")
 | 
					                text: qsTr("Frame Reflections")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,8 +29,8 @@ Tab{
 | 
				
			|||||||
        anchors.fill: parent
 | 
					        anchors.fill: parent
 | 
				
			||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization]
 | 
					            property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization]
 | 
				
			||||||
            title: qsTr("Font" + "(" + rasterization + ")")
 | 
					            title: qsTr("Font " + "(" + rasterization + ")")
 | 
				
			||||||
            anchors { left: parent.left; right: parent.right }
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            GridLayout{
 | 
					            GridLayout{
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
                columns: 2
 | 
					                columns: 2
 | 
				
			||||||
@@ -103,7 +103,7 @@ Tab{
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("Colors")
 | 
					            title: qsTr("Colors")
 | 
				
			||||||
            anchors { left: parent.left; right: parent.right }
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
            ColumnLayout{
 | 
					            ColumnLayout{
 | 
				
			||||||
                anchors.fill: parent
 | 
					                anchors.fill: parent
 | 
				
			||||||
                ColumnLayout{
 | 
					                ColumnLayout{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user