From 69ec562f16bff97dec32321918b81739f26fc283 Mon Sep 17 00:00:00 2001 From: ali kettab Date: Sun, 17 Dec 2023 15:13:31 +0100 Subject: [PATCH] Update outdated comments under wxQt There is no longer a QtGetContainer() function name. wxQtEventForwarder was renamed to wxQtEventSignalHandler. And QtGetScrollBarContainer() was just removed in previous commits. --- include/wx/qt/private/winevent.h | 2 +- include/wx/qt/window.h | 18 ++++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/include/wx/qt/private/winevent.h b/include/wx/qt/private/winevent.h index 79734ded16..fb1fc431e1 100644 --- a/include/wx/qt/private/winevent.h +++ b/include/wx/qt/private/winevent.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: include/wx/qt/winevent_qt.h +// Name: include/wx/qt/private/winevent.h // Purpose: QWidget to wxWindow event handler // Author: Javier Torres, Peter Most // Created: 21.06.10 diff --git a/include/wx/qt/window.h b/include/wx/qt/window.h index b7d806976b..2fb91ee162 100644 --- a/include/wx/qt/window.h +++ b/include/wx/qt/window.h @@ -37,20 +37,14 @@ class WXDLLIMPEXP_FWD_CORE wxQtShortcutHandler; * * Remember to implement the Qt object getters on all subclasses: * - GetHandle() returns the Qt object - * - QtGetScrollBarsContainer() returns the widget where scrollbars are placed - * For example, for wxFrame, GetHandle() is the QMainWindow, - * QtGetScrollBarsContainer() is the central widget and QtGetContainer() is a widget - * in a layout inside the central widget that also contains the scrollbars. - * Return 0 from QtGetScrollBarsContainer() to disable SetScrollBar() and friends - * for wxWindow subclasses. * * - * Event handling is achieved by using the template class wxQtEventForwarder - * found in winevent_qt.(h|cpp) to send all Qt events here to QtHandleXXXEvent() - * methods. All these methods receive the Qt event and the handler. This is - * done because events of the containers (the scrolled part of the window) are - * sent to the same wxWindow instance, that must be able to differentiate them - * as some events need different handling (paintEvent) depending on that. + * Event handling is achieved by using the template class wxQtEventSignalHandler + * found in winevent.h to send all Qt events here to QtHandleXXXEvent() methods. + * All these methods receive the Qt event and the handler. This is done because + * events of the containers (the scrolled part of the window) are sent to the + * same wxWindow instance, that must be able to differentiate them as some events + * need different handling (paintEvent) depending on that. * We pass the QWidget pointer to all event handlers for consistency. */ class WXDLLIMPEXP_CORE wxWindowQt : public wxWindowBase