PKGBUILDs/qt5-activeqt/mingw-w64/0002-Handle-win64-in-dumpcp...

57 lines
2.2 KiB
Diff
Raw Permalink Normal View History

From 7b74ca5cb9fb9077eb26e73a84822850e8608c50 Mon Sep 17 00:00:00 2001
2017-06-02 18:20:04 +02:00
From: Martchus <martchus@gmx.net>
Date: Fri, 2 Jun 2017 17:21:08 +0200
Subject: [PATCH 2/2] Handle win64 in dumpcpp and
MetaObjectGenerator::readClassInfo
See https://bugreports.qt.io/browse/QTBUG-46827
---
src/activeqt/container/qaxbase.cpp | 4 ++++
tools/dumpcpp/main.cpp | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/src/activeqt/container/qaxbase.cpp b/src/activeqt/container/qaxbase.cpp
index 2903cdf..12e3801 100644
2017-06-02 18:20:04 +02:00
--- a/src/activeqt/container/qaxbase.cpp
+++ b/src/activeqt/container/qaxbase.cpp
2020-09-10 21:17:46 +02:00
@@ -2202,6 +2202,10 @@ void MetaObjectGenerator::readClassInfo()
2017-06-02 18:20:04 +02:00
const QStringList versions = controls.childGroups();
for (const QString &version : versions) {
2016-02-03 20:42:14 +01:00
tlfile = controls.value(QLatin1Char('/') + version + QLatin1String("/0/win32/.")).toString();
+ if(tlfile.isEmpty())
+ {
+ tlfile = controls.value(QLatin1Char('/') + version + QLatin1String("/0/win64/.")).toString();
+ }
if (!tlfile.isEmpty())
break;
}
2017-06-02 18:20:04 +02:00
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp
index 55aa80b..a1282f2 100644
2017-06-02 18:20:04 +02:00
--- a/tools/dumpcpp/main.cpp
+++ b/tools/dumpcpp/main.cpp
@@ -1586,6 +1586,10 @@ int main(int argc, char **argv)
typeLib = settings.value(keyPrefix + QLatin1String("win32/.")).toString();
2016-02-03 20:42:14 +01:00
if (QFile::exists(typeLib))
break;
+ typeLib = settings.value(QLatin1String("/") + codes.at(c) + QLatin1String("/0/win64/.")).toByteArray();
+ if (QFile::exists(typeLib)) {
+ break;
+ }
}
if (!typeLib.isEmpty())
@@ -1650,6 +1654,10 @@ int main(int argc, char **argv)
typeLib = settings.value(keyPrefix + QLatin1String("win32/.")).toString();
2016-02-03 20:42:14 +01:00
if (QFile::exists(typeLib))
break;
+ typeLib = settings.value(key + QLatin1String("/") + codes.at(c) + QLatin1String("/win64/.")).toByteArray();
+ if (QFile::exists(typeLib)) {
+ break;
+ }
}
}
2017-06-02 18:20:04 +02:00
--
2.29.2
2017-06-02 18:20:04 +02:00