Skip to content

Commit

Permalink
UserListModel: Indicate in the tooltip that a user is bridged; update…
Browse files Browse the repository at this point in the history
… to the latest lib
  • Loading branch information
KitsuneRal committed Apr 27, 2018
1 parent ce0a3fb commit f80f51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion client/models/userlistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ QVariant UserListModel::data(const QModelIndex& index, int role) const

if (role == Qt::ToolTipRole)
{
return QStringLiteral("<b>%1</b><br>%2")
auto tooltip = QStringLiteral("<b>%1</b><br>%2")
.arg(user->name(m_currentRoom), user->id());
if (!user->bridged().isEmpty())
tooltip += tr("<br>Bridged from: %1").arg(user->bridged());
return tooltip;
}

return QVariant();
Expand Down
2 changes: 1 addition & 1 deletion lib
Submodule lib updated from 698d41 to f5af25

0 comments on commit f80f51d

Please sign in to comment.