[PATCH] for qapplication_win.cpp

Michał Męciński <[email protected]>
Newsgroups gmane.comp.kde.devel.cygwin
Message-ID <[email protected]>
This patch calls QWidget::winEvent in addition to
QApplication::winEventFilter.

-- 
Regards,
  Michał Męciński

_______________________________________________
kde-cygwin mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-cygwin
qapplication_win.cpp.patch (text/plain, 986 B)
Index: src/kernel/qapplication_win.cpp
===================================================================
RCS file: /cvsroot/kde-cygwin/qt-3/src/kernel/Attic/qapplication_win.cpp,v
retrieving revision 1.1.2.30.2.61
diff -u -p -r1.1.2.30.2.61 qapplication_win.cpp
--- src/kernel/qapplication_win.cpp	17 Apr 2005 15:13:04 -0000	1.1.2.30.2.61
+++ src/kernel/qapplication_win.cpp	27 Apr 2005 17:23:42 -0000
@@ -316,6 +316,10 @@ public:
 
     bool translateWheelEvent( int global_x, int global_y, int delta, int state );
 
+    bool invokeWinEvent( MSG* msg )
+    {
+	    return winEvent( msg );
+    }
 
 
     //LRESULT CALLBACK WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);
@@ -3474,6 +3478,10 @@ static LRESULT CALLBACK qt_window_proced
     if ( qt_winEventFilter( &message ) )
     	return 1;
 
+    // invoke winEvent
+    if ( widget && widget->invokeWinEvent( &message ) )
+        return 1;
+
     switch ( uMsg ) {
     case WM_CLOSE:
         if ( widget )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.