mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 22:28:08 +00:00
- Message preview manage huge heights. - Chat design rework. - Sort timelines by unread chat rooms. - Fix thumbnails that weren't deleted. - Play audio record on playback device instead of ringer device. - Fix binding loops on scrollable areas. - Change timeline filter to a minimal version. - Fix record button hovering. - Fix camera button in fullscreen.
62 lines
No EOL
1.7 KiB
QML
62 lines
No EOL
1.7 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
import Utils 1.0
|
|
import UtilsCpp 1.0
|
|
|
|
import Units 1.0
|
|
|
|
import 'Chat.js' as Logic
|
|
|
|
// =============================================================================
|
|
ColumnLayout{
|
|
property alias replyChatRoomModel : replyPreview.chatRoomModel
|
|
property int maxHeight: parent.height
|
|
property int fitHeight: (replyPreview.visible ? replyPreview.height + replySeparator.height: 0 )
|
|
+ (audioPreview.visible ? audioPreview.height + audioSeparator.height: 0)
|
|
+ (filesPreview.visible ? filesPreview.height + filesSeparator.height: 0)
|
|
spacing: 0
|
|
Layout.preferredHeight: fitHeight
|
|
Layout.maximumHeight: fitHeight> maxHeight ? maxHeight : fitHeight // ?? just using maxHeight doesn't work.
|
|
function hide(){
|
|
}
|
|
function addFile(path){
|
|
filesPreview.addFile(path)
|
|
}
|
|
ChatReplyPreview{
|
|
id: replyPreview
|
|
Layout.fillWidth: true
|
|
maxHeight: parent.maxHeight - (audioPreview.visible ? audioPreview.height + audioSeparator.height: 0)
|
|
- (filesPreview.visible ? filesPreview.height + filesSeparator.height: 0)
|
|
}
|
|
Item{
|
|
id: replySeparator
|
|
visible: replyPreview.visible
|
|
Layout.preferredHeight: visible ? ChatStyle.separatorHeight : 0
|
|
Layout.fillWidth: true
|
|
}
|
|
ChatAudioPreview{
|
|
id: audioPreview
|
|
Layout.fillWidth: true
|
|
}
|
|
Item{
|
|
id: audioSeparator
|
|
visible: audioPreview.visible
|
|
Layout.preferredHeight: visible ? ChatStyle.separatorHeight : 0
|
|
Layout.fillWidth: true
|
|
}
|
|
ChatFilePreview{
|
|
id: filesPreview
|
|
Layout.fillWidth: true
|
|
}
|
|
Item{
|
|
id: filesSeparator
|
|
visible: filesPreview.visible
|
|
Layout.preferredHeight: visible ? ChatStyle.separatorHeight : 0
|
|
Layout.fillWidth: true
|
|
}
|
|
} |