From fda48cd96651bf4334b1763ddc06520c0b036f08 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 28 May 2021 08:27:13 +0200 Subject: [PATCH] [A/DE] Fix Qt warning: 'QFlags' is deprecated. --- Applications/DataExplorer/Base/TreeModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/DataExplorer/Base/TreeModel.cpp b/Applications/DataExplorer/Base/TreeModel.cpp index 3a79fc4f65b..a15777a0b05 100644 --- a/Applications/DataExplorer/Base/TreeModel.cpp +++ b/Applications/DataExplorer/Base/TreeModel.cpp @@ -176,7 +176,7 @@ Qt::ItemFlags TreeModel::flags(const QModelIndex& index) const { if (!index.isValid()) { - return nullptr; + return Qt::NoItemFlags; } return Qt::ItemIsEnabled | Qt::ItemIsSelectable; -- GitLab