Expose live member availability to desktop action buttons

This commit is contained in:
evgeny committed 2026-10-19 14:21:37 +02:00
1 parent 04acb6f836
commit dad819282a
2 files changed
+2

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
if (role == Qt::UserRole + 3) return it->flags;
if (role == Qt::UserRole + 4) return (bool)it->storage;
if (role == RadioSpeakingRole) return it->isSelf ? m_selfTransmitting : m_radioTalkers.contains(it->nodeId);
if (role == OnlineRole) return it->online;
return {};
}
return {};
+1
View File
@@ -32,6 +32,7 @@ public:
static constexpr int kRowHeight = 36;
static constexpr int kAvatarSize = kRowHeight - 2;
static constexpr int RadioSpeakingRole = Qt::UserRole + 5;
static constexpr int OnlineRole = Qt::UserRole + 6; /* живой статус BGP для кнопок вызова */
explicit MemberListModel(QObject* parent = nullptr);