linux.x86.linphone/Linphone/view/Page/Layout/Chat/MessageSharedFilesInfos.qml
data 3b3bb966d4 Add ringtone selection dropdown and various bugfixes
- Add ComboBox for ringtone selection in Call Settings
- Convert MKV ringtones to WAV format (Linphone only supports WAV)
- Fix ComboSetting to support dialPlan type for international prefix
- Disable account devices feature to prevent API errors
- Disable automatic update check on startup
- Add ringtone fallback to default when custom file not found
- Fix ringtone dropdown to not override setting on initialization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 08:31:15 +01:00

54 lines
No EOL
1.6 KiB
QML
Executable file

import QtCore
import QtQuick
import QtQuick.Layouts
import Linphone
import UtilsCpp
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
MessageInfosLayout {
id: mainItem
spacing: Utils.getSizeWithScreenRatio(25)
property ChatGui chatGui
property int filter
property bool showAsSquare: false
tabbar.visible: false
content: [
GridView {
id: gridView
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: contentHeight
cellWidth: mainItem.filter === ChatMessageFileProxy.FilterContentType.Documents ? width : Math.round(width / 4)
cellHeight: mainItem.filter === ChatMessageFileProxy.FilterContentType.Documents ? Utils.getSizeWithScreenRatio(69) : Math.round(width / 4)
property bool loading: true
model: ChatMessageFileProxy {
chat: mainItem.chatGui
filterType: mainItem.filter
onModelAboutToBeReset: gridView.loading = true
onModelReset: gridView.loading = false
}
BusyIndicator {
anchors.centerIn: parent
visible: gridView.loading
}
Text {
anchors.centerIn: parent
visible: !gridView.loading && gridView.count === 0
font: Typography.p2l
text: mainItem.filter === ChatMessageFileProxy.FilterContentType.Medias
//: No media
? qsTr("no_shared_medias")
//: No document
: qsTr("no_shared_documents")
}
delegate: FileView {
contentGui: modelData
showAsSquare: mainItem.showAsSquare
width: gridView.cellWidth - Utils.getSizeWithScreenRatio(2)
height: gridView.cellHeight - Utils.getSizeWithScreenRatio(2)
}
},
Item{Layout.fillHeight: true}
]
}