Commit Graph

10 Commits

Author SHA1 Message Date
Yuhang Zhao 807dda608e Adapt to new style.
1. Use QList instead of QVector because QVector will become an alias of QList since Qt6.
2. Don't use *const because the account of const is too large.
3. New style applied, by Clang Format.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-06-27 14:19:09 +08:00
Yuhang Zhao 0b3972643d Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-19 10:20:34 +08:00
Yuhang Zhao a970cafe3a Remove useless variable.
It's not used since we use the object pointers.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-14 10:27:10 +08:00
Yuhang Zhao 083e5ec38c Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-13 21:33:15 +08:00
Yuhang Zhao 2ca6a90ae2 Add a Qt Quick helper class.
It's much easier to use it in Qt Quick now.

Fixes: #11

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-12 20:53:53 +08:00
Yuhang Zhao 9a70ebaaa1 Update Qt Quick example.
Fixes: #11

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-11 22:40:13 +08:00
Yuhang Zhao 136b865853 Minor improvements.
1. Use const more.
2. Add some missing ResolveWin32APIs() call
3. Move updateQtFrame to WinNativeEventFilter

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-09 12:58:01 +08:00
Yuhang Zhao ed6267461c Minor improvements.
The ignore and draggable areas/objects are limited in the title bar area only.
There's no need to judge them outside the title bar area.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-09 09:25:08 +08:00
Yuhang Zhao c4fe56345f Fix compilation error introduced by previous commit.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-08 21:37:36 +08:00
Yuhang Zhao 0fe297b5e4 Add UNIX helper back.
With some improvements.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-08 21:07:44 +08:00