- 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>
35 lines
943 B
QML
Executable file
35 lines
943 B
QML
Executable file
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
import UtilsCpp
|
|
import 'qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js' as Utils
|
|
import "qrc:/qt/qml/Linphone/view/Style/buttonStyle.js" as ButtonStyle
|
|
|
|
|
|
IconLabelButton {
|
|
id: mainItem
|
|
|
|
property var accountGui
|
|
property var presence
|
|
signal click()
|
|
|
|
style: ButtonStyle.hoveredBackgroundBis
|
|
height: Utils.getSizeWithScreenRatio(22)
|
|
radius: Utils.getSizeWithScreenRatio(5)
|
|
text: UtilsCpp.getPresenceStatus(presence)
|
|
textSize: Typography.p1.pixelSize
|
|
textColor: UtilsCpp.getPresenceColor(mainItem.presence)
|
|
textWeight: Typography.p1.weight
|
|
icon.width: Utils.getSizeWithScreenRatio(11)
|
|
icon.height: Utils.getSizeWithScreenRatio(11)
|
|
icon.source: UtilsCpp.getPresenceIcon(mainItem.presence)
|
|
Layout.fillWidth: true
|
|
shadowEnabled: false
|
|
padding: 0
|
|
|
|
onClicked: {
|
|
mainItem.accountGui.core.presence = mainItem.presence
|
|
mainItem.click()
|
|
}
|
|
}
|