Fix wrong code in list/table model templates
rowCount should return 0 if the parent *is* valid, and return
the actual number of rows when queried with an invalid index.
Change-Id: I00e3d4ea79e1aaf0be1974da876c5a871d3924e6
Reviewed-by:
Alessandro Portale <alessandro.portale@qt.io>
Showing
- share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp 1 addition, 1 deletion...creator/templates/wizards/classes/itemmodel/listmodel.cpp
- share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.cpp 2 additions, 2 deletions...reator/templates/wizards/classes/itemmodel/tablemodel.cpp
Loading
Please register or sign in to comment