mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
qt: Follow Qt docs when implementing rowCount and columnCount
This commit is contained in:
@@ -134,13 +134,17 @@ void PeerTableModel::stopAutoRefresh()
|
||||
|
||||
int PeerTableModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return priv->size();
|
||||
}
|
||||
|
||||
int PeerTableModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return columns.length();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user