Commit Graph

15 Commits

Author SHA1 Message Date
Yuhang Zhao 68bc4c31ed Cleanup
WinNativeEventFilter:
1. Removed all unused functions and macros.
Win32 API prototypes are not touched because
we may still need them in the future.
2. Don't store data through SetWindowLongPtrW,
using dynamic properties of QWindow instead.
People may rely on GetWindowLongPtrW(hwnd, GWLP_USERDATA)
to do their own work.
3. Some helper functions are removed, such as
moveWindowToDesktopCenter(). You can implement them
yourself. Keep them in the source code will keep
pulling in new dependencies so I have to get rid
of them.
4. Some blocks are removed, such as WM_GETMINMAXIINFO.
It's not needed. You can call Qt's standard API now,
such as setMaximumSize() and setMinimumSize().

FramelessQuickHelper:
1. Removed all functions that can be replaced by Qt's
own API, such as setMaximumSize() and setMinimumSize().
2. Removed helper functions, such as moveWindowToDesktopCenter().
You can implement them yourself. Just few lines of code.

FramelessWindowsManager:
Adapt to the above changes.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-28 11:54:56 +08:00
Yuhang Zhao 137019f7e6 Refactor
Use QWindow pointer on all platforms.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-17 15:08:39 +08:00
Yuhang Zhao f5a6493364 Minor improvements.
If there is a API, use API instead of reading registry.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-29 12:16:25 +08:00
Yuhang Zhao 955961cf9b Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-24 23:45:23 +08:00
Yuhang Zhao c3d54c616d Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-23 19:04:52 +08:00
Yuhang Zhao 9d4a3a453c Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-23 14:03:04 +08:00
Yuhang Zhao 2e1075235c Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-22 19:55:13 +08:00
Yuhang Zhao d671fd703d Minor improvements.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-22 11:49:30 +08:00
Yuhang Zhao 6a12cb1a30 Minor improvements.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-21 21:21:56 +08:00
Yuhang Zhao cde5ebcf8d Fix build on 5.12
Q_DISABLE_COPY_MOVE: since 5.13
QLatin1String arg: since 5.14

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-20 13:01:43 +08:00
Yuhang Zhao 17b35173ef Minor improvements to the Win32Demo project.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-20 09:55:20 +08:00
Yuhang Zhao 72db8e7043 Improve the Win32Demo project.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-19 14:54:13 +08:00
Yuhang Zhao 8ea85ed3ba Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-18 21:21:03 +08:00
Yuhang Zhao f38b86e992 Fix the context menu issue.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-18 11:53:04 +08:00
Yuhang Zhao 208e831fc5 Add a full-featured win32 example.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-16 15:48:01 +08:00