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:
Tomaz Canabrava 2013-05-13 22:14:59 -03:00 committed by Dirk Hohndel
parent a6d9f27445
commit ee7f579242
5 changed files with 73 additions and 201 deletions

View file

@ -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()