mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
hidden button for debug chatroom address (top right of the avatar in conversation info, press and hold right click) \ display year in meeting list if not this year \ try to fix #LINQT-1834 not all imdn status displayed \ chat details panel refacto
104 lines
3.7 KiB
QML
104 lines
3.7 KiB
QML
import QtCore
|
|
import QtQuick
|
|
import QtQuick.Controls.Basic as Control
|
|
import QtQuick.Dialogs
|
|
import QtQuick.Effects
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
import UtilsCpp
|
|
import SettingsCpp
|
|
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
|
|
|
ColumnLayout {
|
|
|
|
property var title: String
|
|
property var entries
|
|
|
|
Text {
|
|
font: Typography.h4
|
|
color: DefaultStyle.main2_600
|
|
text: title
|
|
Layout.topMargin: Math.round(5 * DefaultStyle.dp)
|
|
}
|
|
|
|
Control.Control {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: implicitHeight
|
|
Layout.topMargin: Math.round(9 * DefaultStyle.dp)
|
|
background: Rectangle {
|
|
anchors.fill: parent
|
|
color: DefaultStyle.grey_100
|
|
radius: Math.round(15 * DefaultStyle.dp)
|
|
}
|
|
|
|
contentItem: ColumnLayout {
|
|
id: contentColumn
|
|
spacing: 0
|
|
|
|
Repeater {
|
|
model: entries
|
|
|
|
delegate: ColumnLayout {
|
|
width: parent.width
|
|
spacing: 0
|
|
property bool hovered: false
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: visible ? Math.round(56 * DefaultStyle.dp) : 0
|
|
visible: modelData.visible
|
|
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
spacing: Math.round(8 * DefaultStyle.dp)
|
|
anchors.leftMargin: Math.round(17 * DefaultStyle.dp)
|
|
anchors.rightMargin: Math.round(10 * DefaultStyle.dp)
|
|
|
|
EffectImage {
|
|
fillMode: Image.PreserveAspectFit
|
|
imageSource: modelData.icon
|
|
colorizationColor: modelData.color
|
|
Layout.preferredHeight: Math.round(20 * DefaultStyle.dp)
|
|
Layout.preferredWidth: Math.round(20 * DefaultStyle.dp)
|
|
}
|
|
|
|
Text {
|
|
text: modelData.text
|
|
font: hovered ? Typography.p1b : Typography.p1
|
|
color: modelData.color
|
|
Layout.alignment: Qt.AlignVCenter
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
EffectImage {
|
|
visible: modelData.showRightArrow
|
|
fillMode: Image.PreserveAspectFit
|
|
imageSource: AppIcons.rightArrow
|
|
colorizationColor: modelData.color
|
|
Layout.preferredHeight: Math.round(20 * DefaultStyle.dp)
|
|
Layout.preferredWidth: Math.round(20 * DefaultStyle.dp)
|
|
}
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
cursorShape: Qt.PointingHandCursor
|
|
onClicked: modelData.action()
|
|
onEntered: hovered = true
|
|
onExited: hovered = false
|
|
hoverEnabled: true
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
visible: index < entries.length - 1
|
|
color: DefaultStyle.main2_200
|
|
height: Math.round(1 * DefaultStyle.dp)
|
|
width: parent.width - Math.round(30 * DefaultStyle.dp)
|
|
Layout.leftMargin: Math.round(17 * DefaultStyle.dp)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|