Add rooms runner

This allows to search for and open rooms in KRunner
This commit is contained in:
Nicolas Fella
2022-04-01 10:56:19 +00:00
committed by Tobias Fella
parent 9a5f2e4938
commit 1cc8d915bc
7 changed files with 300 additions and 1 deletions

View File

@@ -399,6 +399,12 @@ QVariant RoomListModel::data(const QModelIndex &index, int role) const
if (role == SubtitleTextRole) {
return room->subtitleText();
}
if (role == AvatarImageRole) {
return room->avatar(128);
}
if (role == IdRole) {
return room->id();
}
return QVariant();
}