Account without matches: -opacity instead of hide
Hiding doesn't work properly
This commit is contained in:
parent
566aaf3a51
commit
f60b46f26b
@ -43,12 +43,9 @@ HTileDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onActivated: {
|
onActivated: pageLoader.showPage(
|
||||||
becomeSelected()
|
"AccountSettings/AccountSettings", { "userId": model.id }
|
||||||
pageLoader.showPage(
|
)
|
||||||
"AccountSettings/AccountSettings", { "userId": model.id }
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
readonly property alias addChat: addChat
|
readonly property alias addChat: addChat
|
||||||
@ -94,12 +91,9 @@ HTileDelegate {
|
|||||||
icon.name: "add-chat"
|
icon.name: "add-chat"
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
toolTip.text: qsTr("Add new chat")
|
toolTip.text: qsTr("Add new chat")
|
||||||
onClicked: {
|
onClicked: pageLoader.showPage(
|
||||||
becomeSelected()
|
"AddChat/AddChat", {userId: model.id},
|
||||||
pageLoader.showPage(
|
)
|
||||||
"AddChat/AddChat", {userId: model.id},
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
leftPadding: theme.spacing / 2
|
leftPadding: theme.spacing / 2
|
||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
|
@ -13,10 +13,8 @@ Column {
|
|||||||
property string userId: model.id
|
property string userId: model.id
|
||||||
readonly property HListView view: ListView.view
|
readonly property HListView view: ListView.view
|
||||||
readonly property int listIndex: index
|
readonly property int listIndex: index
|
||||||
readonly property bool hide:
|
readonly property bool noFilterResults:
|
||||||
mainPane.filter &&
|
mainPane.filter && roomList.model.count === 0
|
||||||
roomList.model.count < 1 &&
|
|
||||||
! utils.filterMatches(mainPane.filter, model.display_name)
|
|
||||||
|
|
||||||
readonly property alias account: account
|
readonly property alias account: account
|
||||||
readonly property alias collapsed: account.collapsed
|
readonly property alias collapsed: account.collapsed
|
||||||
@ -28,22 +26,14 @@ Column {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
view: accountRooms.view
|
view: accountRooms.view
|
||||||
|
|
||||||
opacity: hide ?
|
opacity: collapsed || noFilterResults ?
|
||||||
0 :
|
theme.mainPane.account.collapsedOpacity : 1
|
||||||
collapsed && ! mainPane.filter ?
|
|
||||||
theme.mainPane.account.collapsedOpacity :
|
|
||||||
1
|
|
||||||
scale: hide ? opacity : 1
|
|
||||||
height: implicitHeight * (hide ? opacity : 1)
|
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HListView {
|
HListView {
|
||||||
id: roomList
|
id: roomList
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: hide ? 0 : contentHeight
|
height: contentHeight
|
||||||
visible: ! hide
|
|
||||||
interactive: false
|
interactive: false
|
||||||
|
|
||||||
model: SortFilterProxyModel {
|
model: SortFilterProxyModel {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user