[Part] Remove deprecated Qt < 5.9 code
This commit is contained in:
@@ -356,17 +356,11 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user