1import QtQuick 2.7 2 3import Common 1.0 4import Linphone 1.0 5 6// ============================================================================= 7 8// Wrapper to use `icon` property. 9Item { 10 property var level: null 11 12 Icon { 13 anchors.centerIn: parent 14 15 icon: (level !== -1 && level != null) 16 ? Presence.getPresenceLevelIconName(level) 17 : '' 18 iconSize: parent.height > parent.width 19 ? parent.width 20 : parent.height 21 } 22} 23