Fix backwards-compatible Qt6 warnings

This commit is contained in:
Johannes Wüller
2024-05-06 15:27:06 +02:00
committed by Chris Hennes
parent 5b4eeb29a9
commit 33e91421b5
22 changed files with 44 additions and 43 deletions

View File

@@ -454,7 +454,7 @@ bool GraphvizView::onMsg(const char* pMsg, const char**)
formatMap << qMakePair(QString::fromLatin1("%1 (*.pdf)").arg(tr("PDF format")), QString::fromLatin1("pdf"));
QStringList filter;
for (const auto & it : qAsConst(formatMap)) {
for (const auto & it : std::as_const(formatMap)) {
filter << it.first;
}
@@ -462,7 +462,7 @@ bool GraphvizView::onMsg(const char* pMsg, const char**)
QString fn = Gui::FileDialog::getSaveFileName(this, tr("Export graph"), QString(), filter.join(QLatin1String(";;")), &selectedFilter);
if (!fn.isEmpty()) {
QString format;
for (const auto & it : qAsConst(formatMap)) {
for (const auto & it : std::as_const(formatMap)) {
if (selectedFilter == it.first) {
format = it.second;
break;