diff options
Diffstat (limited to 'share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp')
-rw-r--r-- | share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp b/share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp index 5d7fa72875..2881513ab6 100644 --- a/share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp +++ b/share/qtcreator/templates/wizards/classes/itemmodel/listmodel.cpp @@ -28,7 +28,7 @@ bool %{CN}::setHeaderData(int section, Qt::Orientation orientation, const QVaria int %{CN}::rowCount(const QModelIndex &parent) const { - if (!parent.isValid()) + if (parent.isValid()) return 0; // FIXME: Implement me! |