Commit Graph

12 Commits

Author SHA1 Message Date
Yuhang Zhao 5fc425fc64 Update.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-14 18:36:13 +08:00
Yuhang Zhao 7cc51b8c2e Update.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-10 11:29:33 +08:00
Yuhang Zhao c9e38491ae Update.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-08-13 16:29: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 a2fde746f5 Minor improvements.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-24 21:26:44 +08:00
Yuhang Zhao e401db219d Add a few more functions to the quick helper.
Maybe useful.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-24 20:54:13 +08:00
Yuhang Zhao 066650f824 Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-22 12:19:12 +08:00
Yuhang Zhao d28e3d167c Add a way to ignore title bar.
If a window is in fullscreen mode, it should not have a title bar.

Maybe a rare use case, but better than nothing.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-17 17:35:09 +08:00
Yuhang Zhao d8e07b86c4 Add moveWindowToDesktopCenter to the quick helper.
It may be useful for Qt Quick users.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-13 21:24:51 +08:00
Yuhang Zhao b216f18b35 Add functions to set max/min size of window to the quick helper.
They may be useful as well.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-13 16:52:47 +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 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