Auto-expand room pane when filter field focused
This commit is contained in:
parent
c018c04cab
commit
4b7ce1a195
|
@ -11,6 +11,7 @@ HColumnLayout {
|
||||||
[chat.userId, chat.roomId, "filtered_members"]
|
[chat.userId, chat.roomId, "filtered_members"]
|
||||||
|
|
||||||
readonly property alias viewDepth: stackView.depth
|
readonly property alias viewDepth: stackView.depth
|
||||||
|
readonly property alias filterField: filterField
|
||||||
|
|
||||||
|
|
||||||
HStackView {
|
HStackView {
|
||||||
|
|
|
@ -33,7 +33,9 @@ MultiviewPane {
|
||||||
buttonRepeater.count >= 1 ? buttonRepeater.itemAt(1).implicitWidth : 0
|
buttonRepeater.count >= 1 ? buttonRepeater.itemAt(1).implicitWidth : 0
|
||||||
|
|
||||||
requireDefaultSize:
|
requireDefaultSize:
|
||||||
swipeView.currentIndex !== 0 || swipeView.currentItem.viewDepth > 1
|
swipeView.currentIndex !== 0 ||
|
||||||
|
swipeView.currentItem.viewDepth > 1 ||
|
||||||
|
swipeView.currentItem.filterField.activeFocus
|
||||||
|
|
||||||
buttonsBackgroundColor: theme.chat.roomPane.topBar.background
|
buttonsBackgroundColor: theme.chat.roomPane.topBar.background
|
||||||
background: Rectangle { color: theme.chat.roomPane.background }
|
background: Rectangle { color: theme.chat.roomPane.background }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user