Use H*Layout totalSpacing wherever possible
This commit is contained in:
@@ -45,7 +45,6 @@ Base.HGlassRectangle {
|
||||
|
||||
Base.HRowLayout {
|
||||
id: bannerButtons
|
||||
spacing: 0
|
||||
|
||||
function getButtonsWidth() {
|
||||
var total = 0
|
||||
|
@@ -1,10 +1,11 @@
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.4
|
||||
import "../Base" as Base
|
||||
import "Banners"
|
||||
import "RoomEventList"
|
||||
|
||||
ColumnLayout {
|
||||
Base.HColumnLayout {
|
||||
property string userId: ""
|
||||
property string roomId: ""
|
||||
|
||||
@@ -16,7 +17,6 @@ ColumnLayout {
|
||||
Component.onCompleted: console.log("replaced")
|
||||
|
||||
id: chatPage
|
||||
spacing: 0
|
||||
onFocusChanged: sendBox.setFocus()
|
||||
|
||||
RoomHeader {
|
||||
|
@@ -4,7 +4,7 @@ import QtQuick.Layouts 1.4
|
||||
import "../../Base" as Base
|
||||
import "../utils.js" as ChatJS
|
||||
|
||||
RowLayout {
|
||||
Base.HRowLayout {
|
||||
id: eventContent
|
||||
spacing: standardSpacing / 2
|
||||
layoutDirection: isOwn ? Qt.RightToLeft : Qt.LeftToRight
|
||||
|
@@ -10,7 +10,7 @@ Row {
|
||||
|
||||
Base.HAvatar { id: avatar; hidden: combine; name: displayName }
|
||||
|
||||
ColumnLayout {
|
||||
Base.HColumnLayout {
|
||||
spacing: 0
|
||||
|
||||
Base.HLabel {
|
||||
@@ -56,7 +56,7 @@ Row {
|
||||
|
||||
Layout.minimumWidth: nameLabel.implicitWidth
|
||||
Layout.maximumWidth: Math.min(
|
||||
600, roomEventListView.width - avatar.width - row.spacing
|
||||
600, roomEventListView.width - avatar.width - row.totalSpacing
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,6 @@ Base.HGlassRectangle {
|
||||
|
||||
Base.HRowLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
|
||||
Base.HAvatar {
|
||||
id: avatar
|
||||
|
@@ -5,7 +5,6 @@ import "../Base" as Base
|
||||
|
||||
Base.HRowLayout {
|
||||
id: toolBar
|
||||
spacing: 0
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 32
|
||||
|
Reference in New Issue
Block a user