mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
* Use QT 6.10.0 * Change invalidateFilter (deprecated) to beginFilterChange/endFilterChange * Remove warning of presenceStatusItem * Add changelog with this modification for 6.1.0 * Do not use anymore variables to build docker images. Qt versions are now hardcoded in images to allow multiple opensource Qt versions.
35 lines
940 B
QML
35 lines
940 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
import UtilsCpp
|
|
import 'qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js' as Utils
|
|
import "qrc:/qt/qml/Linphone/view/Style/buttonStyle.js" as ButtonStyle
|
|
|
|
|
|
IconLabelButton {
|
|
id: mainItem
|
|
|
|
property var accountCore
|
|
property var presence
|
|
signal click()
|
|
|
|
style: ButtonStyle.hoveredBackgroundBis
|
|
height: Utils.getSizeWithScreenRatio(22)
|
|
radius: Utils.getSizeWithScreenRatio(5)
|
|
text: UtilsCpp.getPresenceStatus(presence)
|
|
textSize: Typography.p1.pixelSize
|
|
textColor: UtilsCpp.getPresenceColor(mainItem.presence)
|
|
textWeight: Typography.p1.weight
|
|
icon.width: Utils.getSizeWithScreenRatio(11)
|
|
icon.height: Utils.getSizeWithScreenRatio(11)
|
|
icon.source: UtilsCpp.getPresenceIcon(mainItem.presence)
|
|
Layout.fillWidth: true
|
|
shadowEnabled: false
|
|
padding: 0
|
|
|
|
onClicked: {
|
|
mainItem.accountCore.presence = mainItem.presence
|
|
mainItem.click()
|
|
}
|
|
}
|