summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/qaxserverbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/control/qaxserverbase.cpp')
-rw-r--r--src/activeqt/control/qaxserverbase.cpp16
1 files changed, 0 insertions, 16 deletions
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)