feat: show fake data network, stream, and particles data

This commit is contained in:
talksik
2026-01-28 08:26:30 -08:00
parent 5b271ab623
commit dfcd366f9d
11 changed files with 750 additions and 74 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef PARTICLELISTMODEL_H
#define PARTICLELISTMODEL_H
#include <QAbstractListModel>
#include "data.h"
class ParticleListModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit ParticleListModel(Data *data, QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
void setStreamId(const QString &streamId);
int firstUnseenRow() const; // Returns -1 if none unseen
private:
Data *m_data;
QString m_currentStreamId;
};
#endif // PARTICLELISTMODEL_H