diff --git a/tom/src/tom/application.cpp b/tom/src/tom/application.cpp index c9a439c72..a4ac627af 100644 --- a/tom/src/tom/application.cpp +++ b/tom/src/tom/application.cpp @@ -443,7 +443,13 @@ void Application::printFullVersions() const note(QStringLiteral("tom "), false); info(TINYTOM_VERSION_STR); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) for (const auto &[subsectionName, abouts] : createVersionsSubsection()) { +#else + // To avoid clazy warning + const auto versions = createVersionsSubsection(); + for (const auto &[subsectionName, abouts] : versions) { +#endif // Subsection name is optional if (subsectionName) { newLine();