Use H*Layout totalSpacing wherever possible

This commit is contained in:
miruka
2019-04-28 14:53:45 -04:00
parent 455490b5af
commit b8901dfc5b
7 changed files with 5 additions and 10 deletions

View File

@@ -45,7 +45,6 @@ Base.HGlassRectangle {
Base.HRowLayout {
id: bannerButtons
spacing: 0
function getButtonsWidth() {
var total = 0

View File

@@ -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 {

View File

@@ -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

View File

@@ -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
)
}
}

View File

@@ -16,7 +16,6 @@ Base.HGlassRectangle {
Base.HRowLayout {
anchors.fill: parent
spacing: 0
Base.HAvatar {
id: avatar

View File

@@ -5,7 +5,6 @@ import "../Base" as Base
Base.HRowLayout {
id: toolBar
spacing: 0
Layout.fillWidth: true
Layout.preferredHeight: 32