mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 03:48:09 +00:00
70 lines
1.5 KiB
QML
70 lines
1.5 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Column {
|
|
default property alias _content: content.data
|
|
property alias icon: icon.icon
|
|
property alias title: title.text
|
|
property alias description: description.text
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
spacing: CardBlockStyle.spacing
|
|
width: CardBlockStyle.width
|
|
|
|
Icon {
|
|
id: icon
|
|
|
|
iconSize: CardBlockStyle.icon.size
|
|
height: CardBlockStyle.icon.size + CardBlockStyle.icon.bottomMargin
|
|
width: parent.width
|
|
}
|
|
|
|
Column {
|
|
spacing: CardBlockStyle.title.bottomMargin
|
|
width: parent.width
|
|
|
|
Text {
|
|
id: title
|
|
|
|
color: CardBlockStyle.title.color
|
|
elide: Text.ElideRight
|
|
horizontalAlignment: Text.AlignHCenter
|
|
wrapMode: Text.WordWrap
|
|
|
|
font {
|
|
bold: true
|
|
pointSize: CardBlockStyle.title.pointSize
|
|
}
|
|
|
|
height: CardBlockStyle.title.height
|
|
width: parent.width
|
|
}
|
|
|
|
Text {
|
|
id: description
|
|
|
|
color: CardBlockStyle.description.color
|
|
elide: Text.ElideRight
|
|
font.pointSize: CardBlockStyle.description.pointSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
wrapMode: Text.WordWrap
|
|
|
|
height: CardBlockStyle.description.height
|
|
width: parent.width
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Item {
|
|
id: content
|
|
|
|
height: CardBlockStyle.content.height
|
|
width: parent.width
|
|
}
|
|
}
|