mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
- 'show_home_invite_button' : to hide invite button in Home. - 'default_other_sip_account_domain' : to prefill the domain in other sip account page. Replace ListModel by JS array because ListModel doesn't support properties. Fix overlapping with Search bar and keypad.
70 lines
1.6 KiB
QML
70 lines
1.6 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: visible ? CardBlockStyle.width : 0
|
|
|
|
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.colorModel.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.colorModel.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
|
|
}
|
|
}
|