fix(UserListPanel): use new `FastExpressionRole` (#13299)
This commit is contained in:
parent
7be70ff010
commit
da4105784a
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
import QtQuick.Controls 2.13
|
import QtQuick.Controls 2.13
|
||||||
|
|
||||||
|
import StatusQ 0.1
|
||||||
import StatusQ.Core 0.1
|
import StatusQ.Core 0.1
|
||||||
import StatusQ.Core.Theme 0.1
|
import StatusQ.Core.Theme 0.1
|
||||||
import StatusQ.Components 0.1
|
import StatusQ.Components 0.1
|
||||||
|
@ -60,11 +61,12 @@ Item {
|
||||||
model: SortFilterProxyModel {
|
model: SortFilterProxyModel {
|
||||||
sourceModel: root.usersModel
|
sourceModel: root.usersModel
|
||||||
|
|
||||||
proxyRoles: ExpressionRole {
|
proxyRoles: FastExpressionRole {
|
||||||
function displayNameProxy(nickname, ensName, displayName, aliasName) {
|
function displayNameProxy(nickname, ensName, displayName, aliasName) {
|
||||||
return ProfileUtils.displayName(nickname, ensName, displayName, aliasName)
|
return ProfileUtils.displayName(nickname, ensName, displayName, aliasName)
|
||||||
}
|
}
|
||||||
name: "preferredDisplayName"
|
name: "preferredDisplayName"
|
||||||
|
expectedRoles: ["localNickname", "ensName", "displayName", "alias"]
|
||||||
expression: displayNameProxy(model.localNickname, model.ensName, model.displayName, model.alias)
|
expression: displayNameProxy(model.localNickname, model.ensName, model.displayName, model.alias)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue