File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -84,23 +84,23 @@ void PeerTableModel::stopAutoRefresh()
84
84
timer->stop ();
85
85
}
86
86
87
- int PeerTableModel::rowCount (const QModelIndex & parent) const
87
+ int PeerTableModel::rowCount (const QModelIndex& parent) const
88
88
{
89
89
if (parent.isValid ()) {
90
90
return 0 ;
91
91
}
92
92
return priv->size ();
93
93
}
94
94
95
- int PeerTableModel::columnCount (const QModelIndex & parent) const
95
+ int PeerTableModel::columnCount (const QModelIndex& parent) const
96
96
{
97
97
if (parent.isValid ()) {
98
98
return 0 ;
99
99
}
100
100
return columns.length ();
101
101
}
102
102
103
- QVariant PeerTableModel::data (const QModelIndex & index, int role) const
103
+ QVariant PeerTableModel::data (const QModelIndex& index, int role) const
104
104
{
105
105
if (!index.isValid ())
106
106
return QVariant ();
@@ -172,7 +172,7 @@ Qt::ItemFlags PeerTableModel::flags(const QModelIndex &index) const
172
172
return retval;
173
173
}
174
174
175
- QModelIndex PeerTableModel::index (int row, int column, const QModelIndex & parent) const
175
+ QModelIndex PeerTableModel::index (int row, int column, const QModelIndex& parent) const
176
176
{
177
177
Q_UNUSED (parent);
178
178
CNodeCombinedStats *data = priv->index (row);
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ class PeerTableModel : public QAbstractTableModel
61
61
62
62
/* * @name Methods overridden from QAbstractTableModel
63
63
@{*/
64
- int rowCount (const QModelIndex & parent) const override ;
65
- int columnCount (const QModelIndex & parent) const override ;
66
- QVariant data (const QModelIndex & index, int role) const override ;
67
- QVariant headerData (int section, Qt::Orientation orientation, int role) const override ;
68
- QModelIndex index (int row, int column, const QModelIndex & parent) const override ;
64
+ int rowCount (const QModelIndex& parent = QModelIndex () ) const override ;
65
+ int columnCount (const QModelIndex& parent = QModelIndex () ) const override ;
66
+ QVariant data (const QModelIndex& index, int role = Qt::DisplayRole ) const override ;
67
+ QVariant headerData (int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const override ;
68
+ QModelIndex index (int row, int column, const QModelIndex& parent = QModelIndex () ) const override ;
69
69
Qt::ItemFlags flags (const QModelIndex &index) const override ;
70
70
/* @}*/
71
71
You can’t perform that action at this time.
0 commit comments