mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +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())) {
|
if (hasIndex(index.row(), index.column(), index.parent())) {
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case CompletionModel::CompletionRole:
|
case CompletionModel::CompletionRole:
|
||||||
|
return QString("[%1](https://matrix.to/#/%2)")
|
||||||
|
.arg(displayNames[index.row()])
|
||||||
|
.arg(userids[index.row()]);
|
||||||
case CompletionModel::SearchRole:
|
case CompletionModel::SearchRole:
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
case Roles::DisplayName:
|
case Roles::DisplayName:
|
||||||
|
|
Loading…
Reference in a new issue