Fix impplicit binding and stuff.
This commit is contained in:
@@ -90,7 +90,7 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextEdit {
|
TextEdit {
|
||||||
Layout.fillWidth: true
|
Layout.maximumWidth: parent.width
|
||||||
|
|
||||||
text: "<style>pre {white-space: pre-wrap} a{color: " + color + ";} .user-pill{}</style>" + (replyVisible ? reply.display : "")
|
text: "<style>pre {white-space: pre-wrap} a{color: " + color + ";} .user-pill{}</style>" + (replyVisible ? reply.display : "")
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: model.display
|
text: display
|
||||||
color: MPalette.foreground
|
color: MPalette.foreground
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import QtQuick 2.12
|
|||||||
import org.kde.kirigami 2.4 as Kirigami
|
import org.kde.kirigami 2.4 as Kirigami
|
||||||
|
|
||||||
TextEdit {
|
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 {
|
font {
|
||||||
pixelSize: Kirigami.Theme.defaultFont.pixelSize * 1.2
|
pixelSize: Kirigami.Theme.defaultFont.pixelSize * 1.2
|
||||||
|
|||||||
@@ -4,22 +4,33 @@ import QtQuick.Layouts 1.12
|
|||||||
|
|
||||||
import org.kde.kirigami 2.4 as Kirigami
|
import org.kde.kirigami 2.4 as Kirigami
|
||||||
|
|
||||||
Controls.ItemDelegate {
|
Item {
|
||||||
default property alias innerObject : column.children
|
default property alias innerObject : column.children
|
||||||
|
|
||||||
horizontalPadding: Kirigami.Units.largeSpacing
|
readonly property int horizontalPadding: Kirigami.Units.largeSpacing
|
||||||
verticalPadding: Kirigami.Units.smallSpacing
|
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
|
id: column
|
||||||
|
|
||||||
SectionDelegate {
|
SectionDelegate {
|
||||||
// anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
// width: Math.min(implicitWidth, parent.width)
|
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
visible: showSection
|
visible: showSection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Controls.ItemDelegate {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
z: -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Kirigami.ScrollablePage {
|
|||||||
signal enterRoom(var room)
|
signal enterRoom(var room)
|
||||||
signal leaveRoom(var room)
|
signal leaveRoom(var room)
|
||||||
|
|
||||||
title: "Spectral"
|
title: "Rooms"
|
||||||
actions {
|
actions {
|
||||||
main: Kirigami.Action {
|
main: Kirigami.Action {
|
||||||
iconName: "document-edit"
|
iconName: "document-edit"
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ Kirigami.ScrollablePage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
innerObject: ImageDelegate {
|
innerObject: ImageDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.preferredWidth: Math.min(320, info.w)
|
||||||
Layout.preferredHeight: info.h
|
Layout.preferredHeight: Math.min(320, info.h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user