mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Remove Call and notices logs from db Delete empty chat rooms after requesting it Option of showing/hidding empty chat rooms Many fixes on notifications count, imdn states, synchronizations behaviors, mouse cursor, etc. Fix crashes Fix timeline times
41 lines
964 B
QML
41 lines
964 B
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Utils 1.0
|
|
|
|
// =============================================================================
|
|
// An icon image properly resized.
|
|
// =============================================================================
|
|
|
|
Item {
|
|
property var iconSize // Required.
|
|
property string icon
|
|
|
|
height: iconSize
|
|
width: iconSize
|
|
|
|
Image {
|
|
id:image
|
|
mipmap: Qt.platform.os === 'osx'
|
|
cache: Images.areReadOnlyImages
|
|
function getIconSize () {
|
|
Utils.assert(
|
|
(icon == null || icon == '' || iconSize != null && iconSize >= 0),
|
|
'`iconSize` must be defined and must be positive. (icon=`' +
|
|
icon + '`, iconSize=' + iconSize + ')'
|
|
)
|
|
|
|
return iconSize
|
|
}
|
|
|
|
anchors.centerIn: parent
|
|
|
|
width: iconSize
|
|
height: iconSize
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
source: Utils.resolveImageUri(icon)
|
|
sourceSize.width: getIconSize()
|
|
sourceSize.height: getIconSize()
|
|
}
|
|
}
|