Altair Wei
1f1de5deb6
fix window maximization bugs on Windows
2021-10-07 11:27:56 +08:00
Altair Wei
cefae7950d
default titlebar height and resize border
2021-10-06 15:40:23 +08:00
Altair Wei
183aa9a730
integrate Windows implementation into 2.0 Core API
2021-10-06 15:10:53 +08:00
Altair Wei
5e96c3fec6
fix build error on Windows
2021-10-03 17:44:55 +08:00
Altair Wei
ce69d1a4c5
implement Core API on MacOS
2021-10-02 14:19:46 +08:00
Altair Wei
6a6fea8ac9
improve resize handler db click behavior
2021-09-21 17:56:43 +08:00
Altair Wei
9b2dc893b6
double click resize handler will change geometry
2021-09-20 20:40:03 +08:00
Altair Wei
5f58937588
add hitTestVisible logic
2021-09-20 19:41:24 +08:00
Altair Wei
96f49ded2f
fix move and resize determination
2021-09-20 14:47:49 +08:00
Altair Wei
501ff149cf
implemented X11 resizing
2021-09-20 09:10:04 +08:00
Altair Wei
a365499455
implemented linux x11 moving
2021-09-20 00:08:43 +08:00
Altair Wei
93ac6f6ee3
minimal example that only depends on Core API
2021-09-19 22:24:00 +08:00
Altair Wei
678f903f5c
update hovered states
2021-09-19 21:32:32 +08:00
Altair Wei
da342753a2
change cursor according mouse state
2021-09-19 17:47:14 +08:00
Altair Wei
3784ef0e7f
map position to frame section
2021-09-13 19:59:35 +08:00
Altair Wei
1e2598398d
backbone of new FramelessHelper
2021-09-13 12:22:09 +08:00
Yuhang Zhao
2b6d0fccb6
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-23 11:04:48 +08:00
Yuhang Zhao
5938fcb475
Internal refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-25 14:17:32 +08:00
Yuhang Zhao
4139cf0ab2
redesign API
2021-05-31 11:52:32 +08:00
Yuhang Zhao
684b05ccad
Simplify FramelessHelper code
...
Remove unused code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-12-04 11:41:54 +08:00
Yuhang Zhao
84ce2eb418
Simplify the code a bit
...
There is a type called QObjectList already.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-20 20:52:12 +08:00
Yuhang Zhao
bd60d9d1d2
Remove the widget and quick dependency for UNIX as well
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-18 12:07:29 +08:00
Yuhang Zhao
f35407ce5c
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 20:34:12 +08:00
Yuhang Zhao
904bbb8576
Remove QPointer usages.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 21:06:58 +08:00
Yuhang Zhao
5fc425fc64
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-14 18:36:13 +08:00
Yuhang Zhao
43012e2681
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-08-01 11:45:12 +08:00
Yuhang Zhao
c61b6ff1fb
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-08-01 10:32:22 +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
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
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
0fe297b5e4
Add UNIX helper back.
...
With some improvements.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-08 21:07:44 +08:00
Yuhang Zhao
7753161f9f
Add Qt Quick example.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-05-08 14:19:41 +08:00
Yuhang Zhao
c1fddf0028
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-04-06 12:12:32 +08:00
Yuhang Zhao
cdd8ca2e84
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-04-04 22:20:02 +08:00