fix: also move the windows include for windows build

This commit is contained in:
Gary Wang 2021-01-10 15:23:49 +08:00
parent 6d8f353602
commit 9b1b125d01
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,12 @@
#include "framelesswindow.h"
#include <QApplication>
#include <QVBoxLayout>
#ifdef _WIN32
#include <windows.h>
#endif // _WIN32
FramelessWindow::FramelessWindow(QWidget *parent)
: QWidget(parent)
, m_centralLayout(new QVBoxLayout(this))

View File

@ -26,10 +26,6 @@
#include <QMimeData>
#include <QWindow>
#ifdef _WIN32
#include <windows.h>
#endif // _WIN32
MainWindow::MainWindow(QWidget *parent) :
FramelessWindow(parent)
{