misc: minor format changes

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-04-17 17:29:22 +08:00
parent 079c8ff6b6
commit 45ebbee471
1 changed files with 10 additions and 10 deletions

View File

@ -169,6 +169,7 @@ template<typename T>
#endif #endif
} }
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
[[nodiscard]] static inline Display *x11_get_display() [[nodiscard]] static inline Display *x11_get_display()
{ {
if (!qGuiApp) { if (!qGuiApp) {
@ -270,7 +271,6 @@ static inline void x11_emulateButtonRelease(const WId windowId, const QPoint &gl
XFlush(display); XFlush(display);
} }
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
static inline void x11_moveOrResizeWindow(const WId windowId, const QPoint &pos, const int section) static inline void x11_moveOrResizeWindow(const WId windowId, const QPoint &pos, const int section)
{ {
Q_ASSERT(windowId); Q_ASSERT(windowId);