From a80605e8e80e74f46232eb179073781d1d6c9e2f Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 10 Sep 2012 13:01:53 +0200 Subject: [PATCH] Backport to Qt 4.5 --- src/Mod/Part/Gui/TaskCheckGeometry.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Part/Gui/TaskCheckGeometry.cpp b/src/Mod/Part/Gui/TaskCheckGeometry.cpp index f647b3c8b7..bf220e3cce 100644 --- a/src/Mod/Part/Gui/TaskCheckGeometry.cpp +++ b/src/Mod/Part/Gui/TaskCheckGeometry.cpp @@ -237,11 +237,17 @@ QVariant ResultModel::headerData(int section, Qt::Orientation orientation, int r void ResultModel::setResults(ResultEntry *resultsIn) { +#if QT_VERSION >= 0x040600 this->beginResetModel(); +#endif if (root) delete root; root = resultsIn; +#if QT_VERSION >= 0x040600 this->endResetModel(); +#else + this->reset(); +#endif } ResultEntry* ResultModel::getEntry(const QModelIndex &index)