mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-19 04:18:08 +00:00
- Fix CI on Qt5_DIR. - Hide reply message preview after sending message. - Fix binding loop on sub-messages. - Reduce spacing size in message.
34 lines
1,002 B
QML
34 lines
1,002 B
QML
import QtQuick 2.7
|
|
|
|
import Common.Styles 1.0
|
|
|
|
// =============================================================================
|
|
// Description content used by dialogs.
|
|
// =============================================================================
|
|
|
|
Item {
|
|
property alias text: description.text
|
|
property alias horizontalAlignment: description.horizontalAlignment
|
|
property int marginOffset: 0
|
|
|
|
height: !text ? (DialogStyle.description.verticalMargin + marginOffset) : undefined
|
|
implicitHeight: text
|
|
? description.implicitHeight + (DialogStyle.description.verticalMargin + marginOffset) * 2
|
|
: 0
|
|
|
|
Text {
|
|
id: description
|
|
|
|
anchors {
|
|
fill: parent
|
|
leftMargin: DialogStyle.description.leftMargin
|
|
rightMargin: DialogStyle.description.rightMargin
|
|
}
|
|
|
|
color: DialogStyle.description.color
|
|
font.pointSize: DialogStyle.description.pointSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
}
|