Commit 9c2ebf2f authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile against qt < 5.14

parent f1b8dc07
......@@ -667,7 +667,7 @@ QSet<int> MarkupDirector::getElementsToClose(QTextBlock::iterator it) const
// End of block?. Close all open tags.
const QList<int> openElement = d->m_openElements;
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
auto elementsToClose = d->m_openElements.toSet();
#else
auto elementsToClose = QSet<int>(openElement.begin(), openElement.end());
......
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