mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Linkify username completion
This commit is contained in:
parent
0cf556fa20
commit
c07c326141
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ UsersModel::data(const QModelIndex &index, int role) const
|
|||
if (hasIndex(index.row(), index.column(), index.parent())) {
|
||||
switch (role) {
|
||||
case CompletionModel::CompletionRole:
|
||||
return QString("[%1](https://matrix.to/#/%2)")
|
||||
.arg(displayNames[index.row()])
|
||||
.arg(userids[index.row()]);
|
||||
case CompletionModel::SearchRole:
|
||||
case Qt::DisplayRole:
|
||||
case Roles::DisplayName:
|
||||
|
|
Loading…
Reference in a new issue