5 #ifndef BITCOIN_QT_PEERTABLEMODEL_H
6 #define BITCOIN_QT_PEERTABLEMODEL_H
11 #include <QAbstractTableModel>
13 #include <QModelIndex>
14 #include <QStringList>
45 void startAutoRefresh();
46 void stopAutoRefresh();
61 StatsRole = Qt::UserRole,
66 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
67 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
68 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
69 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
70 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
71 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
79 QList<CNodeCombinedStats> m_peers_data{};
81 const QStringList columns{
112 #endif // BITCOIN_QT_PEERTABLEMODEL_H