Yuhang Zhao
2023-12-11 e9ce49b601b412050e9709a3474e51950dccd5a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef WIDGETWINDOWCONTEXT_P_H
#define WIDGETWINDOWCONTEXT_P_H
 
#include <QtGlobal>
 
#ifdef Q_OS_WINDOWS
#  include <QWKCore/private/win32windowcontext_p.h>
#else
#  include <QWKCore/private/qtwindowcontext_p.h>
#endif
 
namespace QWK {
 
    using CoreWindowContext =
#ifdef Q_OS_WINDOWS
        Win32WindowContext
#else
        QtWindowContext
#endif
        ;
 
    class WidgetWindowContext : public CoreWindowContext {
        Q_OBJECT
    public:
        WidgetWindowContext() = default;
        ~WidgetWindowContext() override = default;
 
    protected:
        bool hostEventFilter(QEvent *event) override;
    };
 
}
 
#endif // WIDGETWINDOWCONTEXT_P_H