forked from github_mirror/framelesshelper
Fix 5.12 build error.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
3697992a31
commit
aa146d1893
|
@ -76,7 +76,7 @@ WinNativeEventFilter::setWindowData(reinterpret_cast<HWND>(widget.winId()), &dat
|
||||||
const auto data = WinNativeEventFilter::windowData(reinterpret_cast<HWND>(widget.winId()));
|
const auto data = WinNativeEventFilter::windowData(reinterpret_cast<HWND>(widget.winId()));
|
||||||
data.borderWidth = 5;
|
data.borderWidth = 5;
|
||||||
data.borderHeight = 5;
|
data.borderHeight = 5;
|
||||||
data.titlebarHeight = 30;
|
data.titleBarHeight = 30;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Supported Platforms
|
## Supported Platforms
|
||||||
|
|
|
@ -36,6 +36,16 @@
|
||||||
#include "framelesshelper.h"
|
#include "framelesshelper.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 13, 0))
|
||||||
|
#define Q_DISABLE_MOVE(Class) \
|
||||||
|
Class(Class &&) = delete; \
|
||||||
|
Class &operator=(Class &&) = delete;
|
||||||
|
|
||||||
|
#define Q_DISABLE_COPY_MOVE(Class) \
|
||||||
|
Q_DISABLE_COPY(Class) \
|
||||||
|
Q_DISABLE_MOVE(Class)
|
||||||
|
#endif
|
||||||
|
|
||||||
class FramelessQuickHelper : public QQuickItem {
|
class FramelessQuickHelper : public QQuickItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_DISABLE_COPY_MOVE(FramelessQuickHelper)
|
Q_DISABLE_COPY_MOVE(FramelessQuickHelper)
|
||||||
|
|
Loading…
Reference in New Issue