qt: Avoid non-self-contained Windows header

Using the `windows.h` header guarantees correctness regardless of the
content of other headers.
For more details, please refer to https://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio

Fixes the MSVC build when using the upcoming CMake-based build system
and Qt packages installed via the vcpkg package manager.
This commit is contained in:
Hennadii Stepanov 2024-01-25 10:26:26 +00:00
parent 03752444cd
commit 8023640a71
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -10,7 +10,7 @@
#include <QString>
#include <functional>
#include <windef.h> // for HWND
#include <windows.h>
#include <QAbstractNativeEventFilter>