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:
@@ -289,13 +289,17 @@ void TransactionTableModel::updateConfirmations()
|
||||
|
||||
int TransactionTableModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return priv->size();
|
||||
}
|
||||
|
||||
int TransactionTableModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return columns.length();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user