Fix build with Qt 6.2 on macOS.
This commit is contained in:
parent
87b121069f
commit
674391524b
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include "ui/platform/mac/ui_window_title_mac.h"
|
#include "ui/platform/mac/ui_window_title_mac.h"
|
||||||
#include "ui/widgets/rp_window.h"
|
#include "ui/widgets/rp_window.h"
|
||||||
|
#include "base/qt_adapters.h"
|
||||||
#include "base/platform/base_platform_info.h"
|
#include "base/platform/base_platform_info.h"
|
||||||
#include "styles/palette.h"
|
#include "styles/palette.h"
|
||||||
|
|
||||||
|
|
@ -93,7 +94,7 @@ public:
|
||||||
bool nativeEventFilter(
|
bool nativeEventFilter(
|
||||||
const QByteArray &eventType,
|
const QByteArray &eventType,
|
||||||
void *message,
|
void *message,
|
||||||
long *result) {
|
base::NativeEventResult *result) {
|
||||||
NSEvent *e = static_cast<NSEvent*>(message);
|
NSEvent *e = static_cast<NSEvent*>(message);
|
||||||
return (e && [e type] == NSEventTypeLeftMouseDown)
|
return (e && [e type] == NSEventTypeLeftMouseDown)
|
||||||
? _checkPerformDrag([e window])
|
? _checkPerformDrag([e window])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue