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 {
|
||||
mainItem.chatClicked(modelData)
|
||||
mainItem.currentIndex = model.index
|
||||
mainItem.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,10 @@ ListView {
|
|||
})
|
||||
}
|
||||
|
||||
onChatChanged: lastItemVisible = false
|
||||
onChatChanged: {
|
||||
lastItemVisible = false
|
||||
forceActiveFocus()
|
||||
}
|
||||
|
||||
Button {
|
||||
visible: !mainItem.lastItemVisible
|
||||
|
|
|
|||
|
|
@ -38,17 +38,20 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
Control.Control {
|
||||
visible: expandButton.checked
|
||||
Layout.fillWidth: true
|
||||
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
|
||||
radius: Math.round(15 * DefaultStyle.dp)
|
||||
height: participants.length > 0 ? contentColumn.implicitHeight : Math.round(90 * DefaultStyle.dp)
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
contentItem: ColumnLayout {
|
||||
id: contentColumn
|
||||
anchors.fill: parent
|
||||
spacing: Math.round(16 * DefaultStyle.dp)
|
||||
|
||||
Item {
|
||||
|
|
@ -205,11 +208,6 @@ ColumnLayout {
|
|||
style: ButtonStyle.secondary
|
||||
onClicked: mainItem.manageParticipantsRequested()
|
||||
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