From 9b1b125d01b8e865d6042531d62459b6691e7ecb Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 10 Jan 2021 15:23:49 +0800 Subject: [PATCH] fix: also move the windows include for windows build --- app/framelesswindow.cpp | 5 +++++ app/mainwindow.cpp | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/framelesswindow.cpp b/app/framelesswindow.cpp index 8c20782..7a2f80c 100644 --- a/app/framelesswindow.cpp +++ b/app/framelesswindow.cpp @@ -1,7 +1,12 @@ #include "framelesswindow.h" +#include #include +#ifdef _WIN32 +#include +#endif // _WIN32 + FramelessWindow::FramelessWindow(QWidget *parent) : QWidget(parent) , m_centralLayout(new QVBoxLayout(this)) diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index de18c87..f018da6 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -26,10 +26,6 @@ #include #include -#ifdef _WIN32 -#include -#endif // _WIN32 - MainWindow::MainWindow(QWidget *parent) : FramelessWindow(parent) {