Commit Graph

9 Commits

Author SHA1 Message Date
Yuhang Zhao fc1566897f Update.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-10 20:51:07 +08:00
Yuhang Zhao 43012e2681 Update.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-08-01 11:45:12 +08:00
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 921b87ab2e Minor improvements.
Use global screen coordinates instead of local window coordinates to get more reliable hit test result.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-13 12:56:03 +08:00
Yuhang Zhao ae62a8fb49 Minor improvements.
Move the moveWindowToDesktopCenter function to FramelessHelper.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-09 11:33:20 +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