Show enabled radios in desktop member rows
This commit is contained in:
1 parent
0f9210e491
commit
6c5c1ef0a0
2 files changed
+7
-1
No files matched your search
@@ -48,7 +48,8 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
|
||||
}
|
||||
if (role == Qt::ToolTipRole)
|
||||
return QString(it->online ? "online" : "offline") + " | 0x" +
|
||||
QString("%1").arg(it->nodeId, 16, 16, QChar('0'));
|
||||
QString("%1").arg(it->nodeId, 16, 16, QChar('0')) +
|
||||
((it->flags & CHAT_MEMBER_FLAG_RADIO) ? tr(" | Radio enabled") : QString());
|
||||
if (role == Qt::UserRole + 2) return it->isSelf;
|
||||
if (role == Qt::UserRole + 3) return it->flags;
|
||||
if (role == Qt::UserRole + 4) return (bool)it->storage;
|
||||
|
||||
Reference in new issue
Block a user