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()
8484 timer->stop ();
8585}
8686
87- int PeerTableModel::rowCount (const QModelIndex & parent) const
87+ int PeerTableModel::rowCount (const QModelIndex& parent) const
8888{
8989 if (parent.isValid ()) {
9090 return 0 ;
9191 }
9292 return priv->size ();
9393}
9494
95- int PeerTableModel::columnCount (const QModelIndex & parent) const
95+ int PeerTableModel::columnCount (const QModelIndex& parent) const
9696{
9797 if (parent.isValid ()) {
9898 return 0 ;
9999 }
100100 return columns.length ();
101101}
102102
103- QVariant PeerTableModel::data (const QModelIndex & index, int role) const
103+ QVariant PeerTableModel::data (const QModelIndex& index, int role) const
104104{
105105 if (!index.isValid ())
106106 return QVariant ();
@@ -172,7 +172,7 @@ Qt::ItemFlags PeerTableModel::flags(const QModelIndex &index) const
172172 return retval;
173173}
174174
175- QModelIndex PeerTableModel::index (int row, int column, const QModelIndex & parent) const
175+ QModelIndex PeerTableModel::index (int row, int column, const QModelIndex& parent) const
176176{
177177 Q_UNUSED (parent);
178178 CNodeCombinedStats *data = priv->index (row);
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ class PeerTableModel : public QAbstractTableModel
6161
6262 /* * @name Methods overridden from QAbstractTableModel
6363 @{*/
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 ;
6969 Qt::ItemFlags flags (const QModelIndex &index) const override ;
7070 /* @}*/
7171
You can’t perform that action at this time.
0 commit comments