mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
Wrap text in action button in room info
This commit is contained in:
parent
a02a58ecc9
commit
f82a4db826
3 changed files with 44 additions and 14 deletions
|
|
@ -9,6 +9,7 @@ ColumnLayout {
|
|||
id: labelButton
|
||||
// property alias image: buttonImg
|
||||
property alias button: button
|
||||
property alias text: text
|
||||
property string label
|
||||
spacing: Math.round(8 * DefaultStyle.dp)
|
||||
Button {
|
||||
|
|
@ -25,6 +26,7 @@ ColumnLayout {
|
|||
style: ButtonStyle.grey
|
||||
}
|
||||
Text {
|
||||
id: text
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: labelButton.label
|
||||
font {
|
||||
|
|
|
|||
|
|
@ -106,12 +106,18 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: Math.round(55 * DefaultStyle.dp)
|
||||
spacing: Math.round(10 * DefaultStyle.dp)
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
||||
Layout.preferredHeight: Math.round(100 * DefaultStyle.dp)
|
||||
Layout.minimumHeight: Math.round(100 * DefaultStyle.dp)
|
||||
LabelButton {
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
||||
|
|
@ -121,8 +127,12 @@ ColumnLayout {
|
|||
}
|
||||
LabelButton {
|
||||
visible: !SettingsCpp.disableMeetingsFeature
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: AppIcons.phone
|
||||
|
|
@ -132,8 +142,12 @@ ColumnLayout {
|
|||
}
|
||||
LabelButton {
|
||||
visible: !SettingsCpp.disableMeetingsFeature
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: AppIcons.videoconference
|
||||
|
|
|
|||
|
|
@ -51,12 +51,18 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: Math.round(55 * DefaultStyle.dp)
|
||||
spacing: Math.round(10 * DefaultStyle.dp)
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
||||
Layout.preferredHeight: Math.round(110 * DefaultStyle.dp)
|
||||
Layout.minimumHeight: Math.round(110 * DefaultStyle.dp)
|
||||
LabelButton {
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: AppIcons.phone
|
||||
|
|
@ -65,8 +71,12 @@ ColumnLayout {
|
|||
button.onClicked: parentView.oneOneCall(false)
|
||||
}
|
||||
LabelButton {
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: mainItem.chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
||||
|
|
@ -77,8 +87,12 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
LabelButton {
|
||||
width: Math.round(56 * DefaultStyle.dp)
|
||||
height: Math.round(56 * DefaultStyle.dp)
|
||||
text.Layout.fillWidth: true
|
||||
text.horizontalAlignment: Text.AlignHCenter
|
||||
text.wrapMode: Text.Wrap
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||
button.icon.source: AppIcons.search
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue