Backport to Qt 4.5

This commit is contained in:
wmayer
2012-09-10 13:01:53 +02:00
parent b0ea93ed9a
commit a80605e8e8

View File

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