mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-22 07:28:36 +00:00
29 lines
538 B
QML
29 lines
538 B
QML
import QtQuick 2.7
|
|
|
|
import Linphone 1.0
|
|
|
|
// ===================================================================
|
|
|
|
Icon {
|
|
property int level: -1
|
|
|
|
function _getColorString () {
|
|
if (level === ContactModel.Green) {
|
|
return 'green'
|
|
}
|
|
if (level === ContactModel.Orange) {
|
|
return 'orange'
|
|
}
|
|
if (level === ContactModel.Red) {
|
|
return 'red'
|
|
}
|
|
if (level === ContactModel.White) {
|
|
return 'white'
|
|
}
|
|
}
|
|
|
|
icon: {
|
|
var level = _getColorString()
|
|
return level ? 'led_' + level : ''
|
|
}
|
|
}
|