Commit c85c60dc authored by Mathieu Westphal's avatar Mathieu Westphal

Correcting a #if related warning in pqSILWidget

parent 8ad0f935
......@@ -167,10 +167,12 @@ void pqSILWidget::onModelReset()
tree->setModel(sortModel);
tree->expandAll();
auto helper = new pqTreeViewSelectionHelper(tree);
#if (QT_VERSION < QT_VERSION_CHECK(5, 10, 0))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
new pqTreeViewSelectionHelper(tree);
#else
// disable filtering for older Qt version where recursive filtering
// on a tree is not supported.
auto helper = new pqTreeViewSelectionHelper(tree);
helper->setFilterable(false);
#endif
......
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