Calculate row and column count correctly
commit911e2b589f20bacd662d637d6df0a2093cc6583a
authorArto Jonsson <ajonsson@kapsi.fi>
Mon, 26 Jul 2010 15:37:09 +0000 (26 18:37 +0300)
committerArto Jonsson <ajonsson@kapsi.fi>
Mon, 26 Jul 2010 15:37:09 +0000 (26 18:37 +0300)
tree2af602d8b04cdbaca9b855bb53e43d4a3e597111
parent97e382b77e2a1660c1787774854ea157be3d063a
Calculate row and column count correctly

The rowCount() and columnCount() methods should return 0 when 'parent'
is valid in table based models. The hasChildren() method can be removed
because its default implementation calls rowCount() directly.

Fix for GameDatabaseModel is in another branch.
projects/gui/src/movelistmodel.cpp
projects/gui/src/movelistmodel.h