fix focus for key binding in chat message lit
fix participant info view
This commit is contained in:
parent
6ccbdf6ef8
commit
a7f3476568
3 changed files with 25 additions and 25 deletions
|
|
@ -447,7 +447,6 @@ ListView {
|
||||||
} else {
|
} else {
|
||||||
mainItem.chatClicked(modelData)
|
mainItem.chatClicked(modelData)
|
||||||
mainItem.currentIndex = model.index
|
mainItem.currentIndex = model.index
|
||||||
mainItem.forceActiveFocus()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,10 @@ ListView {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
onChatChanged: lastItemVisible = false
|
onChatChanged: {
|
||||||
|
lastItemVisible = false
|
||||||
|
forceActiveFocus()
|
||||||
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
visible: !mainItem.lastItemVisible
|
visible: !mainItem.lastItemVisible
|
||||||
|
|
|
||||||
|
|
@ -38,17 +38,20 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Control.Control {
|
||||||
visible: expandButton.checked
|
visible: expandButton.checked
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: Math.round(9 * DefaultStyle.dp)
|
Layout.topMargin: Math.round(9 * DefaultStyle.dp)
|
||||||
|
height: Math.min(contentColumn.implicitHeight, Math.round(90 * DefaultStyle.dp))
|
||||||
|
bottomPadding: Math.round(15 * DefaultStyle.dp)
|
||||||
|
|
||||||
|
background: Rectangle {
|
||||||
color: DefaultStyle.grey_100
|
color: DefaultStyle.grey_100
|
||||||
radius: Math.round(15 * DefaultStyle.dp)
|
radius: Math.round(15 * DefaultStyle.dp)
|
||||||
height: participants.length > 0 ? contentColumn.implicitHeight : Math.round(90 * DefaultStyle.dp)
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
id: contentColumn
|
id: contentColumn
|
||||||
anchors.fill: parent
|
|
||||||
spacing: Math.round(16 * DefaultStyle.dp)
|
spacing: Math.round(16 * DefaultStyle.dp)
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -205,11 +208,6 @@ ColumnLayout {
|
||||||
style: ButtonStyle.secondary
|
style: ButtonStyle.secondary
|
||||||
onClicked: mainItem.manageParticipantsRequested()
|
onClicked: mainItem.manageParticipantsRequested()
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.bottomMargin: Math.round(17 * DefaultStyle.dp)
|
|
||||||
}
|
|
||||||
Item {
|
|
||||||
visible: !manageParticipants.visible
|
|
||||||
Layout.bottomMargin: Math.round(7 * DefaultStyle.dp)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue