Skip to content
Snippets Groups Projects
Commit 18f3516e authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Merge branch 'DataExplorerFixWarnings' into 'master'

DataExplorer: fix Qt deprecated warnings

See merge request ogs/ogs!3643
parents bbc4e96b fda48cd9
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ Qt::ItemFlags TreeModel::flags(const QModelIndex& index) const ...@@ -176,7 +176,7 @@ Qt::ItemFlags TreeModel::flags(const QModelIndex& index) const
{ {
if (!index.isValid()) if (!index.isValid())
{ {
return nullptr; return Qt::NoItemFlags;
} }
return Qt::ItemIsEnabled | Qt::ItemIsSelectable; return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
...@@ -254,7 +254,7 @@ void TreeModel::setupModelData(const QStringList& lines, TreeItem* parent) ...@@ -254,7 +254,7 @@ void TreeModel::setupModelData(const QStringList& lines, TreeItem* parent)
{ {
// Read the column data from the rest of the line. // Read the column data from the rest of the line.
QStringList columnStrings = QStringList columnStrings =
lineData.split("\t", QString::SkipEmptyParts); lineData.split("\t", Qt::SkipEmptyParts);
QList<QVariant> columnData; QList<QVariant> columnData;
for (int column = 0; column < columnStrings.count(); ++column) for (int column = 0; column < columnStrings.count(); ++column)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment