Big update to remove deprecation warning from Qt 5.15.0

That is need on MacOS build as travis log is bigger than 50k lines
which breaks travis rules
And by the way deprecations are real
All file contains the same modification replace 0 to Qt::WindowFlags() when needed
as the class needs to be instantiated

Signed-off-by: vejmarie <jmverdun3@gmail.com>
This commit is contained in:
vejmarie
2020-09-23 14:55:00 -07:00
committed by wwmayer
parent f752814e1a
commit 704d4d9945
65 changed files with 102 additions and 102 deletions

View File

@@ -628,7 +628,7 @@ Qt::ItemFlags DocumentModel::flags(const QModelIndex &index) const
// return Qt::ItemIsEnabled;
//return QAbstractItemModel::flags(index);
if (!index.isValid())
return 0;
return Qt::ItemFlags();
return static_cast<DocumentModelIndex*>(index.internalPointer())->flags();
}