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 ();
@@ -164,7 +164,7 @@ Qt::ItemFlags PeerTableModel::flags(const QModelIndex &index) const
164164 return retval;
165165}
166166
167- QModelIndex PeerTableModel::index (int row, int column, const QModelIndex & parent) const
167+ QModelIndex PeerTableModel::index (int row, int column, const QModelIndex& parent) const
168168{
169169 Q_UNUSED (parent);
170170 CNodeCombinedStats *data = priv->index (row);
Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ class PeerTableModel : public QAbstractTableModel
6060
6161 /* * @name Methods overridden from QAbstractTableModel
6262 @{*/
63- int rowCount (const QModelIndex & parent) const override ;
64- int columnCount (const QModelIndex & parent) const override ;
65- QVariant data (const QModelIndex & index, int role) const override ;
66- QVariant headerData (int section, Qt::Orientation orientation, int role) const override ;
67- QModelIndex index (int row, int column, const QModelIndex & parent) const override ;
63+ int rowCount (const QModelIndex& parent = QModelIndex () ) const override ;
64+ int columnCount (const QModelIndex& parent = QModelIndex () ) const override ;
65+ QVariant data (const QModelIndex& index, int role = Qt::DisplayRole ) const override ;
66+ QVariant headerData (int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const override ;
67+ QModelIndex index (int row, int column, const QModelIndex& parent = QModelIndex () ) const override ;
6868 Qt::ItemFlags flags (const QModelIndex &index) const override ;
6969 /* @}*/
7070
You can’t perform that action at this time.
0 commit comments