fix: cleanup some elements and fix the right side gap
This commit is contained in:
parent
c3bddf863e
commit
defd6f262e
|
@ -7,8 +7,6 @@ import "../imports"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
width: parent.height
|
|
||||||
height: parent.width
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
@ -129,6 +127,7 @@ RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
// Those anchors show a warning, but they are the only way to have QT Creator show correctly
|
||||||
anchors.left: tabBar.right
|
anchors.left: tabBar.right
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
@ -136,21 +135,24 @@ RowLayout {
|
||||||
currentIndex: tabBar.currentIndex
|
currentIndex: tabBar.currentIndex
|
||||||
|
|
||||||
SplitView {
|
SplitView {
|
||||||
id: splitView
|
id: chatView
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.leftMargin: 0
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
// Those anchors show a warning too, but whithout them, there is a gap on the right
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 0
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: element1
|
id: contactsColumn
|
||||||
width: 300
|
width: 300
|
||||||
height: parent.height
|
height: parent.height
|
||||||
Layout.minimumWidth: 200
|
Layout.minimumWidth: 200
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.rightMargin: 0
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -340,6 +342,9 @@ RowLayout {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: chatColumn
|
id: chatColumn
|
||||||
|
spacing: 0
|
||||||
|
anchors.left: contactsColumn.right
|
||||||
|
anchors.leftMargin: 0
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 0
|
anchors.rightMargin: 0
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
@ -357,9 +362,9 @@ RowLayout {
|
||||||
id: chatBox
|
id: chatBox
|
||||||
height: 140
|
height: 140
|
||||||
color: "#00000000"
|
color: "#00000000"
|
||||||
|
border.color: "#00000000"
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
border.color: "#00000000"
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: chatImage
|
id: chatImage
|
||||||
|
@ -474,6 +479,12 @@ RowLayout {
|
||||||
TextArea { id: callResult; Layout.fillWidth: true; text: logic.callResult; readOnly: true }
|
TextArea { id: callResult; Layout.fillWidth: true; text: logic.callResult; readOnly: true }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: accountResultContainer
|
||||||
|
Layout.fillHeight: true
|
||||||
|
TextArea { id: accountResult; Layout.fillWidth: true; text: logic.accountResult; readOnly: true }
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: chatInputContainer
|
id: chatInputContainer
|
||||||
height: 70
|
height: 70
|
||||||
|
@ -543,19 +554,9 @@ RowLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillHeight: true
|
|
||||||
TextArea { id: accountResult; Layout.fillWidth: true; text: logic.accountResult; readOnly: true }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue