Commit c0554124 authored by Jan Möbius's avatar Jan Möbius

Qt 5.15 warning fixes

parent e18bbd38
......@@ -140,10 +140,17 @@ 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() == 0 || _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