diff options
| -rw-r--r-- | .cmake.conf | 2 | ||||
| -rw-r--r-- | dependencies.yaml | 2 | ||||
| -rw-r--r-- | src/activeqt/control/qaxserverbase.cpp | 16 | ||||
| -rw-r--r-- | src/activeqt/control/qaxserverdll.cpp | 4 | ||||
| -rw-r--r-- | src/activeqt/doc/CMakeLists.txt | 9 |
5 files changed, 11 insertions, 22 deletions
diff --git a/.cmake.conf b/.cmake.conf index 98c2813..6e14eb3 100644 --- a/.cmake.conf +++ b/.cmake.conf @@ -1,3 +1,3 @@ -set(QT_REPO_MODULE_VERSION "6.5.7") +set(QT_REPO_MODULE_VERSION "6.5.8") set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1") set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_AS_CONST=1") diff --git a/dependencies.yaml b/dependencies.yaml index 0743c54..7e5bf3e 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -1,4 +1,4 @@ dependencies: ../tqtc-qtbase: - ref: fc0e66eefe3a08428ca4a6e92c66f37ac126d3c4 + ref: 0fe1875684a77d985277eaf58741e64ef6514bca required: true diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp index d92b9b1..38177a6 100644 --- a/src/activeqt/control/qaxserverbase.cpp +++ b/src/activeqt/control/qaxserverbase.cpp @@ -56,8 +56,6 @@ QT_BEGIN_NAMESPACE -extern HHOOK qax_hhook; - // in qaxserver.cpp extern ITypeLib *qAxTypeLibrary; extern unsigned long qAxLock(); @@ -756,15 +754,6 @@ private: LONG ref = 1; }; -// callback for DLL server to hook into non-Qt eventloop -LRESULT QT_WIN_CALLBACK axs_FilterProc(int nCode, WPARAM wParam, LPARAM lParam) -{ - if (qApp && !invokeCount) - QCoreApplication::sendPostedEvents(); - - return CallNextHookEx(qax_hhook, nCode, wParam, lParam); -} - // filter for executable case to hook into Qt eventloop // for DLLs the client calls TranslateAccelerator class QAxWinEventFilter : public QAbstractNativeEventFilter @@ -888,11 +877,6 @@ HRESULT QClassFactory::CreateInstanceHelper(IUnknown *pUnkOuter, REFIID iid, voi else QGuiApplicationPrivate::instance()->in_exec = true; - // hook into eventloop; this allows a server to create his own QApplication object - if (!qax_hhook && qax_ownQApp) { - qax_hhook = SetWindowsHookEx(WH_GETMESSAGE, axs_FilterProc, nullptr, GetCurrentThreadId()); - } - // If we created QApplication instance, ensure native event loop starts properly // by calling processEvents. if (qax_ownQApp) diff --git a/src/activeqt/control/qaxserverdll.cpp b/src/activeqt/control/qaxserverdll.cpp index 38169db..cf6f9ca 100644 --- a/src/activeqt/control/qaxserverdll.cpp +++ b/src/activeqt/control/qaxserverdll.cpp @@ -13,7 +13,6 @@ QT_BEGIN_NAMESPACE bool qax_ownQApp = false; -HHOOK qax_hhook = nullptr; // in qaxserver.cpp extern wchar_t qAxModuleFilename[MAX_PATH]; @@ -90,9 +89,6 @@ STDAPI DllCanUnloadNow() return S_FALSE; // no widgets left - destroy qApp - if (qax_hhook) - UnhookWindowsHookEx(qax_hhook); - QClassFactory::cleanupCreatedApplication(*qApp); delete qApp; qax_ownQApp = false; diff --git a/src/activeqt/doc/CMakeLists.txt b/src/activeqt/doc/CMakeLists.txt index e3c1b33..2e50d77 100644 --- a/src/activeqt/doc/CMakeLists.txt +++ b/src/activeqt/doc/CMakeLists.txt @@ -2,4 +2,13 @@ # SPDX-License-Identifier: BSD-3-Clause add_library(ActiveQt INTERFACE) + +# ensure that QtCore include path is passed to QDoc on documentation builds +# on non-Windows platforms +if(NOT WIN32) + if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.19") + target_link_libraries(ActiveQt INTERFACE Qt::Core) + endif() +endif() + qt_internal_add_docs(ActiveQt activeqt.qdocconf) |
