Commit 1a6970ce authored by Jan Möbius's avatar Jan Möbius
Browse files

Qt 5.15 warning fixes

parent 9d3fb221
......@@ -220,10 +220,19 @@ QVariant TreeModel::data(const QModelIndex &_index, int _role) const
*/
Qt::ItemFlags TreeModel::flags(const QModelIndex &_index) const
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
if (!_index.isValid())
return 0;
Qt::ItemFlags flags = 0;
#else
if (!_index.isValid())
return Qt::ItemFlags();
Qt::ItemFlags flags = Qt::ItemFlags();
#endif
// Show/Source/Target
if ( ( _index.column() == 1 ) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment