Commit Graph

11 Commits

Author SHA1 Message Date
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 b672851f51 Win32: Remove the dependency of the widgets and quick module
This commit totally removed the dependency of the widgets
and quick modules for the Windows platform. Now the library
itself only depends on the core and gui modules. Currently
no bug can be found. But there are some side effects: one is
we can't set a palette for a widget due to we can't access
QWidget specific functions so if you want to enable blur
effect, you will have to do this by yourself. Another one is
you now have to pass the window handle to WinNativeEventFilter
instead of the pointer of a QObject. Before this patch, I'm
using QWidget::winId() to get the window handle, now we have
get rid of the widgets dependency so I can't get the window
handle now, you have to pass it explicitly. And it leads to
huge refactoring of the whole repository. But I think it's
worth doing. If anyone knows how to get the window handle
without introducing new dependencies, please tell me. It will
help me a lot.

To remove the quick dependency, the FramelessQuickHelper class
is moved out of the library now. If your project needs it,
please copy the files to your project and include them directly.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-16 23:01:00 +08:00
Yuhang Zhao 14556d8b2d Update documentation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-14 17:41:17 +08:00
Yuhang Zhao c24fec11ab Add some useful information for developers
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-14 17:32:24 +08:00
Yuhang Zhao c783bc1fe2 Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 11:34:41 +08:00
Yuhang Zhao c82f2aa0f5 Update README
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-22 11:55:07 +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 19da037a77 Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-21 19:48:41 +08:00
Yuhang Zhao ff4556438b Update documentation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-17 13:12:17 +08:00
Yuhang Zhao a0eeab1ff7 Fix typos in README files.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 11:31:07 +08:00
Yuhang Zhao 0a616b566c Update documentation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 11:20:58 +08:00