summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qdoc/htmlgenerator.cpp12
-rw-r--r--src/windeployqt/main.cpp7
2 files changed, 12 insertions, 7 deletions
diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp
index 8fcb8817f..c1d242e20 100644
--- a/src/qdoc/htmlgenerator.cpp
+++ b/src/qdoc/htmlgenerator.cpp
@@ -2109,9 +2109,7 @@ void HtmlGenerator::generateHeader(const QString& title,
if (node && !node->doc().location().isEmpty())
out() << "<!-- " << node->doc().location().fileName() << " -->\n";
- QString shortVersion = qdb_->version();
- if (shortVersion.count(QChar('.')) == 2)
- shortVersion.truncate(shortVersion.lastIndexOf(QChar('.')));
+ QString projectVersion = qdb_->version();
//determine the rest of the <title> element content: "title | titleSuffix version"
QString titleSuffix;
@@ -2140,8 +2138,8 @@ void HtmlGenerator::generateHeader(const QString& title,
titleSuffix.clear();
//for pages that duplicate the version, clear the duplicate
- if (title.contains(shortVersion) || titleSuffix.contains(shortVersion))
- shortVersion.clear();
+ if (title.contains(projectVersion) || titleSuffix.contains(projectVersion))
+ projectVersion.clear();
QString divider;
if (!titleSuffix.isEmpty() && !title.isEmpty())
@@ -2153,8 +2151,8 @@ void HtmlGenerator::generateHeader(const QString& title,
<< divider
<< titleSuffix;
- if (!shortVersion.isEmpty())
- out() << QLatin1Char(' ') << shortVersion;
+ if (!projectVersion.isEmpty())
+ out() << QLatin1Char(' ') << projectVersion;
out() << "</title>\n";
diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp
index 2266e84da..f3c0e5fd7 100644
--- a/src/windeployqt/main.cpp
+++ b/src/windeployqt/main.cpp
@@ -40,7 +40,12 @@
#include <QtCore/QOperatingSystemVersion>
#include <QtCore/QSharedPointer>
#include <QtCore/QVector>
+
+#ifdef Q_OS_WIN
#include <QtCore/qt_windows.h>
+#else
+#define IMAGE_FILE_MACHINE_ARM64 0xaa64
+#endif
#include <algorithm>
#include <iostream>
@@ -1111,6 +1116,7 @@ static QStringList compilerRunTimeLibs(Platform platform, bool isDebug, unsigned
result.append(dllFi.absoluteFilePath());
}
break;
+#ifdef Q_OS_WIN
case WindowsDesktop: { // MSVC/Desktop: Add redistributable packages.
QString vcRedistDirName = vcRedistDir();
if (vcRedistDirName.isEmpty())
@@ -1150,6 +1156,7 @@ static QStringList compilerRunTimeLibs(Platform platform, bool isDebug, unsigned
result.append(redistFiles);
}
break;
+#endif // Q_OS_WIN
default:
break;
}