Skip to content

Commit f80f51d

Browse files
committed
UserListModel: Indicate in the tooltip that a user is bridged; update to the latest lib
1 parent ce0a3fb commit f80f51d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

client/models/userlistmodel.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ QVariant UserListModel::data(const QModelIndex& index, int role) const
104104

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

111114
return QVariant();

lib

Submodule lib updated from 698d41f to f5af254

0 commit comments

Comments
 (0)