Check parent in rowCount/columnCount/canFetchMore
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
This commit is contained in:
parent
5558f3d2cc
commit
fce323b945
20 changed files with 41 additions and 41 deletions
|
@ -173,7 +173,7 @@ bool WorldList::resetIcon(int row)
|
|||
|
||||
int WorldList::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
return 4;
|
||||
return parent.isValid()? 0 : 4;
|
||||
}
|
||||
|
||||
QVariant WorldList::data(const QModelIndex &index, int role) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue