mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 17:24:58 +02:00
qt: Follow Qt docs when implementing rowCount and columnCount
This commit is contained in:
@@ -177,13 +177,17 @@ AddressTableModel::~AddressTableModel()
|
||||
|
||||
int AddressTableModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return priv->size();
|
||||
}
|
||||
|
||||
int AddressTableModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
if (parent.isValid()) {
|
||||
return 0;
|
||||
}
|
||||
return columns.length();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user