mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
fix(Chat): supports very large image, use clip if necessary
This commit is contained in:
parent
ad73020130
commit
f52dc26a04
3 changed files with 9 additions and 4 deletions
|
|
@ -167,7 +167,7 @@ ColumnLayout {
|
|||
ListElement { $dateSection: 1465389121000; $timestamp: 1465389133000; $type: 'event'; $content: 'incoming_call' }
|
||||
ListElement { $dateSection: 1465389121000; $timestamp: 1465389439000; $type: 'message'; $content: 'www.test.fr<blink>Perfect!</blink> bg g vg gv v g v hgv gv gv jhb jh b jb jh hg vg cfcy f v u uyg f tf tf ft f tf t t fy ft f tu ty f rd rd d d uu gu y gg y f r dr ' }
|
||||
ListElement { $dateSection: 1465389121000; $timestamp: 1465389500000; $type: 'event'; $content: 'end_call' }
|
||||
ListElement { $dateSection: 1465994221000; $outgoing: true; $timestamp: 1465924321000; $type: 'message'; $content: 'https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg You\'ve heard the expression, "Just believe it and http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg it will https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg come." http://html.com/wp-content/uploads/html-com-1.png Well, technically, that is true, https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg however, \'believing\' is not just thinking that you can have it...' }
|
||||
ListElement { $dateSection: 1465994221000; $outgoing: true; $timestamp: 1465924321000; $type: 'message'; $content: 'http://mithril94.free.fr/sigbarfactory/fonts/show/tribal.gif https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg You\'ve heard the expression, "Just believe it and http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg it will https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg come." http://html.com/wp-content/uploads/html-com-1.png Well, technically, that is true, https://cdn.pixabay.com/photo/2014/03/29/09/17/cat-300572_960_720.jpg however, \'believing\' is not just thinking that you can have it...' }
|
||||
ListElement { $dateSection: 1465994221000; $timestamp: 1465924391000; $type: 'event'; $content: 'lost_incoming_call' }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,12 +36,13 @@ Item {
|
|||
left: container.left
|
||||
right: container.right
|
||||
}
|
||||
clip: true
|
||||
padding: ChatStyle.entry.message.padding
|
||||
readOnly: true
|
||||
selectByMouse: true
|
||||
text: Utils.encodeUrisToQmlFormat($content, {
|
||||
imagesHeight: ChatStyle.entry.message.imagesHeight,
|
||||
imagesWidth: 'auto'
|
||||
imagesHeight: ChatStyle.entry.message.images.height,
|
||||
imagesWidth: ChatStyle.entry.message.images.width
|
||||
})
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ QtObject {
|
|||
}
|
||||
|
||||
property QtObject message: QtObject {
|
||||
property int imagesHeight: 48
|
||||
property int padding: 8
|
||||
property int radius: 4
|
||||
|
||||
|
|
@ -57,6 +56,11 @@ QtObject {
|
|||
property int rightMargin: 5
|
||||
}
|
||||
|
||||
property QtObject images: QtObject {
|
||||
property int height: 48
|
||||
// `width` can be used.
|
||||
}
|
||||
|
||||
property QtObject incoming: QtObject {
|
||||
property color backgroundColor: Colors.y
|
||||
property int avatarSize: 20
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue