mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-31 10:59:23 +00:00
* Activate mipmap on MacOs to avoid Qt crashes * Use 5.14.2 for Windows * Request Qt 5.12 as a minimal version and cmake 3.9 (in order to embed big resources) * Remove build on Debian8 as it has Qt 5.10 * Add default fonts for supported languages * Use a build parameter to set `dpiawareness` (Windows) * Add OTF support, in addition of TTF * Explicit the answer to video request : Fix on not showing video when accepting a second request * Use UTF8 when chatting and notifications to show all languages/symbols * Fix SIP display on call view * Fix a typo on a variable in call view (might lead to get transparent view)
39 lines
885 B
QML
39 lines
885 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 {
|
|
mipmap: Qt.platform.os === 'osx'
|
|
function getIconSize () {
|
|
Utils.assert(
|
|
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()
|
|
}
|
|
}
|