linux.x86.linphone/Linphone/view/Control/Display/TemporaryText.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

35 lines
662 B
QML
Executable file

import QtQuick
import QtQuick.Controls.Basic as Control
import QtQuick.Layouts 1.0
import QtQuick.Effects
import Linphone
Text {
id: mainItem
color: DefaultStyle.danger_500_main
property bool isVisible: text.length > 0
function clear() {
autoHideErrorMessage.stop()
text = ""
}
function setText(text) {
if (text.length === 0) {
clear()
} else {
mainItem.text = text
}
}
font {
pixelSize: Typography.b3.pixelSize
weight: Typography.b3.weight
}
Timer {
id: autoHideErrorMessage
interval: 5000
onTriggered: {
mainItem.clear()
}
}
onTextChanged: if (mainItem.text.length > 0) autoHideErrorMessage.restart()
}