mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Trying to make the DiveList selection behave correctly
And rip out all the code that Dirk put there to do that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a6d9f27445
commit
ee7f579242
5 changed files with 73 additions and 201 deletions
|
@ -660,15 +660,14 @@ int DiveTripModel::rowCount(const QModelIndex& parent) const
|
|||
{
|
||||
TreeItemDT* parentItem;
|
||||
|
||||
if (parent.column() > 0)
|
||||
return 0;
|
||||
|
||||
if (!parent.isValid())
|
||||
parentItem = rootItem;
|
||||
else
|
||||
parentItem = static_cast<TreeItemDT*>(parent.internalPointer());
|
||||
|
||||
return parentItem->childs.count();
|
||||
int amount = parentItem->childs.count();
|
||||
|
||||
return amount;
|
||||
}
|
||||
|
||||
void DiveTripModel::setupModelData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue