Skip to content
Snippets Groups Projects
Commit 3168560d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Cleanup ImageMessage and ChatView qml files

parent 0a9f221a
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,6 @@ Page {
delegate: ListItem {
id: messageItem
//contentHeight: loader.item.contentHeight
contentHeight: loader.item.height
Loader {
......@@ -77,11 +76,6 @@ Page {
default: return "delegates/placeholder.qml"
}
property variant modelData: model
onLoaded: {
console.log("Loaded item with height: " + item.height)
// messageItem.contentHeight = item.height
}
}
}
......@@ -105,7 +99,6 @@ Page {
id: messageText
placeholderText: qsTr("Enter your message")
//text: "asksfgjs afiguse aifdsvugsfd adfivuhsf aisdfuvs aiudsvhcas"
wrapMode: Text.Wrap
width: parent.width - sendButton.width
}
......@@ -113,7 +106,6 @@ Page {
IconButton {
anchors.right: parent.right
anchors.top: parent.top
//anchors.left: messageText.right
id: sendButton
......
......@@ -5,7 +5,6 @@ Rectangle {
id: container
height: col.height
//width: parent.width
Column {
id: col
......@@ -18,20 +17,10 @@ Rectangle {
Image {
id: image
fillMode: Image.PreserveAspectFit
//Layout.fillWidth: true
width: parent.width
source: modelData.Url.replace("mxc://", "image://MXCImage/")
asynchronous: true
//height: implicitHeight
//height: status == Image.Ready ? busy.height : implicitHeight
onStatusChanged: {
if (image.status == Image.Ready){
//bound.height = image.implicitHeight
console.log("container width" + container.width)
console.log("chat width" + chatView.width)
chatView.forceLayout()
}
}
BusyIndicator {
id: busy
size: BusyIndicatorSize.Medium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment