Commit Graph

4 Commits

Author SHA1 Message Date
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