linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / qt-5 / 5.12 / qtbase.patch.d / 0002-qtbase-mac.patch
blob9f0c66651844bb3e36c6b7f4ed85d2ef307ab6e9
1 From 203c9338dc92c2c36007cfe6633387348976637e Mon Sep 17 00:00:00 2001
2 From: Thomas Tuegel <ttuegel@mailbox.org>
3 Date: Tue, 17 Sep 2019 05:37:15 -0500
4 Subject: [PATCH 02/12] qtbase-mac
6 ---
7 src/corelib/kernel/qcore_mac_p.h | 16 ++++++++++++++--
8 src/testlib/qappletestlogger.cpp | 2 +-
9 src/testlib/qappletestlogger_p.h | 2 +-
10 src/testlib/qtestcase.cpp | 2 +-
11 src/testlib/qtestlog.cpp | 2 +-
12 src/testlib/qtestlog_p.h | 2 +-
13 6 files changed, 19 insertions(+), 7 deletions(-)
15 diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h
16 index f96e7358..650946b7 100644
17 --- a/src/corelib/kernel/qcore_mac_p.h
18 +++ b/src/corelib/kernel/qcore_mac_p.h
19 @@ -212,7 +212,7 @@ private:
21 // --------------------------------------------------------------------------
23 -#if !defined(QT_BOOTSTRAPPED)
24 +#if 0
26 QT_END_NAMESPACE
27 #include <os/activity.h>
28 @@ -290,7 +290,19 @@ QT_MAC_WEAK_IMPORT(_os_activity_current);
30 #define QT_APPLE_SCOPED_LOG_ACTIVITY(...) QAppleLogActivity scopedLogActivity = QT_APPLE_LOG_ACTIVITY(__VA_ARGS__).enter();
32 -#endif // !defined(QT_BOOTSTRAPPED)
33 +#else // !defined(QT_BOOTSTRAPPED)
35 +#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT3(...)
36 +#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT2(...)
37 +#define QT_APPLE_LOG_ACTIVITY_WITH_PARENT(...)
39 +#define QT_APPLE_LOG_ACTIVITY2(...)
40 +#define QT_APPLE_LOG_ACTIVITY1(...)
41 +#define QT_APPLE_LOG_ACTIVITY(...)
43 +#define QT_APPLE_SCOPED_LOG_ACTIVITY(...)
45 +#endif
47 // -------------------------------------------------------------------------
49 diff --git a/src/testlib/qappletestlogger.cpp b/src/testlib/qappletestlogger.cpp
50 index dfeadebd..2a74330c 100644
51 --- a/src/testlib/qappletestlogger.cpp
52 +++ b/src/testlib/qappletestlogger.cpp
53 @@ -43,7 +43,7 @@
55 QT_BEGIN_NAMESPACE
57 -#if defined(QT_USE_APPLE_UNIFIED_LOGGING)
58 +#if defined(QT_USE_APPLE_UNIFIED_LOGGING) && 0
60 using namespace QTestPrivate;
62 diff --git a/src/testlib/qappletestlogger_p.h b/src/testlib/qappletestlogger_p.h
63 index 62c6d95c..f8e0a3b7 100644
64 --- a/src/testlib/qappletestlogger_p.h
65 +++ b/src/testlib/qappletestlogger_p.h
66 @@ -57,7 +57,7 @@
68 QT_BEGIN_NAMESPACE
70 -#if defined(QT_USE_APPLE_UNIFIED_LOGGING)
71 +#if defined(QT_USE_APPLE_UNIFIED_LOGGING) && 0
72 class QAppleTestLogger : public QAbstractTestLogger
74 public:
75 diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
76 index 0c935a1f..22f2d75d 100644
77 --- a/src/testlib/qtestcase.cpp
78 +++ b/src/testlib/qtestcase.cpp
79 @@ -850,7 +850,7 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, char *argv[], bool qml)
81 bool addFallbackLogger = !explicitLoggerRequested;
83 -#if defined(QT_USE_APPLE_UNIFIED_LOGGING)
84 +#if defined(QT_USE_APPLE_UNIFIED_LOGGING) && 0
85 // Any explicitly requested loggers will be added by now, so we can check if they use stdout
86 const bool safeToAddAppleLogger = !AppleUnifiedLogger::willMirrorToStderr() || !QTestLog::loggerUsingStdout();
87 if (safeToAddAppleLogger && QAppleTestLogger::debugLoggingEnabled()) {
88 diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp
89 index 57bb7d95..33fb8162 100644
90 --- a/src/testlib/qtestlog.cpp
91 +++ b/src/testlib/qtestlog.cpp
92 @@ -460,7 +460,7 @@ void QTestLog::addLogger(LogMode mode, const char *filename)
93 case QTestLog::TAP:
94 logger = new QTapTestLogger(filename);
95 break;
96 -#if defined(QT_USE_APPLE_UNIFIED_LOGGING)
97 +#if defined(QT_USE_APPLE_UNIFIED_LOGGING) && 0
98 case QTestLog::Apple:
99 logger = new QAppleTestLogger;
100 break;
101 diff --git a/src/testlib/qtestlog_p.h b/src/testlib/qtestlog_p.h
102 index e63e89a7..213b6945 100644
103 --- a/src/testlib/qtestlog_p.h
104 +++ b/src/testlib/qtestlog_p.h
105 @@ -68,7 +68,7 @@ class Q_TESTLIB_EXPORT QTestLog
106 public:
107 enum LogMode {
108 Plain = 0, XML, LightXML, XunitXML, CSV, TeamCity, TAP
109 -#if defined(QT_USE_APPLE_UNIFIED_LOGGING)
110 +#if defined(QT_USE_APPLE_UNIFIED_LOGGING) && 0
111 , Apple
112 #endif
113 #if defined(HAVE_XCTEST)
115 2.23.0