2020-09-10 21:17:46 +02:00
|
|
|
From 5652ce8e4225793cb4041be6aadee82d4ac84c27 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
|
2020-09-10 21:17:46 +02:00
|
|
|
index 3203096..6adf9eb 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
|
2020-05-29 17:30:23 +02:00
|
|
|
index 780d41b..029e10b 100644
|
2017-06-02 18:20:04 +02:00
|
|
|
--- a/tools/dumpcpp/main.cpp
|
|
|
|
+++ b/tools/dumpcpp/main.cpp
|
2019-12-13 01:00:48 +01:00
|
|
|
@@ -1580,6 +1580,10 @@ int main(int argc, char **argv)
|
2016-02-03 20:42:14 +01:00
|
|
|
typeLib = settings.value(QLatin1Char('/') + codes.at(c) + QLatin1String("/0/win32/.")).toString();
|
|
|
|
if (QFile::exists(typeLib))
|
|
|
|
break;
|
|
|
|
+ typeLib = settings.value(QLatin1String("/") + codes.at(c) + QLatin1String("/0/win64/.")).toByteArray();
|
|
|
|
+ if (QFile::exists(typeLib)) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!typeLib.isEmpty())
|
2019-12-13 01:00:48 +01:00
|
|
|
@@ -1639,6 +1643,10 @@ int main(int argc, char **argv)
|
2016-02-03 20:42:14 +01:00
|
|
|
+ QLatin1String("/win32/.")).toString();
|
|
|
|
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
|
|
|
--
|
2020-09-10 21:17:46 +02:00
|
|
|
2.28.0
|
2017-06-02 18:20:04 +02:00
|
|
|
|