Fix impplicit binding and stuff.

This commit is contained in:
Black
2020-02-12 14:44:00 -08:00
parent cd10a8474a
commit f25b79ab7e
6 changed files with 23 additions and 12 deletions

View File

@@ -90,7 +90,7 @@ RowLayout {
}
TextEdit {
Layout.fillWidth: true
Layout.maximumWidth: parent.width
text: "<style>pre {white-space: pre-wrap} a{color: " + color + ";} .user-pill{}</style>" + (replyVisible ? reply.display : "")

View File

@@ -43,7 +43,7 @@ RowLayout {
}
Label {
text: model.display
text: display
color: MPalette.foreground
font.pixelSize: 13
font.weight: Font.Medium

View File

@@ -3,7 +3,7 @@ import QtQuick 2.12
import org.kde.kirigami 2.4 as Kirigami
TextEdit {
text: "<style>pre {white-space: pre-wrap} a{color: " + Kirigami.Theme.linkColor + ";} .user-pill{}</style>" + model.display
text: "<style>pre {white-space: pre-wrap} a{color: " + Kirigami.Theme.linkColor + ";} .user-pill{}</style>" + display
font {
pixelSize: Kirigami.Theme.defaultFont.pixelSize * 1.2

View File

@@ -4,22 +4,33 @@ import QtQuick.Layouts 1.12
import org.kde.kirigami 2.4 as Kirigami
Controls.ItemDelegate {
Item {
default property alias innerObject : column.children
horizontalPadding: Kirigami.Units.largeSpacing
verticalPadding: Kirigami.Units.smallSpacing
readonly property int horizontalPadding: Kirigami.Units.largeSpacing
readonly property int verticalPadding: Kirigami.Units.smallSpacing
height: column.implicitHeight + verticalPadding * 2
ColumnLayout {
x: horizontalPadding
y: verticalPadding
width: parent.width - horizontalPadding * 2
contentItem: ColumnLayout {
id: column
SectionDelegate {
// anchors.horizontalCenter: parent.horizontalCenter
// width: Math.min(implicitWidth, parent.width)
Layout.maximumWidth: parent.width
Layout.alignment: Qt.AlignHCenter
visible: showSection
}
}
Controls.ItemDelegate {
anchors.fill: parent
z: -1
}
}

View File

@@ -16,7 +16,7 @@ Kirigami.ScrollablePage {
signal enterRoom(var room)
signal leaveRoom(var room)
title: "Spectral"
title: "Rooms"
actions {
main: Kirigami.Action {
iconName: "document-edit"

View File

@@ -164,8 +164,8 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
innerObject: ImageDelegate {
Layout.fillWidth: true
Layout.preferredHeight: info.h
Layout.preferredWidth: Math.min(320, info.w)
Layout.preferredHeight: Math.min(320, info.h)
}
}
}