linux.x86.linphone/Linphone/view/Page/Layout/Chat/MessageInfosLayout.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

67 lines
1.6 KiB
QML
Executable file

import QtCore
import QtQuick
import QtQuick.Controls.Basic as Control
import QtQuick.Dialogs
import QtQuick.Effects
import QtQuick.Layouts
import Linphone
import UtilsCpp
import SettingsCpp
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
ColumnLayout {
id: mainItem
property string title
property ChatMessageGui chatMessageGui
property var tabbarModel
property var listModel
property var listDelegate
property alias tabbar: tabbar
property alias listView: listView
property var parentView
property alias content: contentLayout.children
spacing: Utils.getSizeWithScreenRatio(25)
signal goBackRequested()
RowLayout {
BigButton {
icon.source: AppIcons.leftArrow
style: ButtonStyle.noBackground
onClicked: mainItem.goBackRequested()
}
Text {
text: mainItem.title
font: Typography.h4
}
}
ColumnLayout {
id: contentLayout
Layout.leftMargin: Utils.getSizeWithScreenRatio(16)
Layout.rightMargin: Utils.getSizeWithScreenRatio(16)
spacing: Utils.getSizeWithScreenRatio(21)
TabBar {
id: tabbar
visible: mainItem.tabbarModel !== undefined
Layout.fillWidth: true
Layout.preferredWidth: implicitWidth
model: mainItem.tabbarModel
pixelSize: Typography.h4.pixelSize
textWeight: Typography.h4.weight
spacing: Utils.getSizeWithScreenRatio(10)
}
ListView {
id: listView
visible: mainItem.listModel !== undefined
Layout.fillWidth: true
Layout.fillHeight: true
spacing: Utils.getSizeWithScreenRatio(11)
model: mainItem.listModel
}
}
}