Zhao Yuhang
c4a7bc80d0
fix crash
2023-10-21 18:19:56 +08:00
Zhao Yuhang
415fb55222
win: adapt to latest qtbase changes
2023-10-21 11:07:34 +08:00
Zhao Yuhang
78fc5057ab
misc: general cleanup
2023-10-21 10:44:07 +08:00
Zhao Yuhang
2cb8ec0aeb
win: minor fix
2023-10-19 20:13:34 +08:00
Zhao Yuhang
aa489b25d0
win: don't repaint superflus
2023-10-19 19:51:53 +08:00
Zhao Yuhang
ff4b9f3879
minor tweaks
2023-10-15 13:16:10 +08:00
Yuhang Zhao
12d580cc06
win: workaround Qt bug
2023-10-12 10:56:47 +08:00
Yuhang Zhao
d86f55832f
refactor
2023-10-04 11:37:39 +08:00
Yuhang Zhao
6abb636a19
large refactor
2023-08-27 15:12:06 +08:00
SineStriker
2d639071cc
Fix bugs after mouse press ( #270 )
2023-08-26 16:04:29 +08:00
Yuhang Zhao
f7368d0a08
widgets: PIMPL refactor
2023-08-25 17:50:22 +08:00
Yuhang Zhao
5c8ac2736f
quick: PIMPL refactor
2023-08-24 18:05:48 +08:00
Yuhang Zhao
4a1f5fb1f4
win: replace an old workaround with new one
2023-08-24 10:24:33 +08:00
Yuhang Zhao
a130fef677
win: refactor
2023-08-23 18:04:31 +08:00
Yuhang Zhao
469c686ade
refactor
2023-08-21 12:43:44 +08:00
Yuhang Zhao
ca968b7ba6
snap layout: fix qt events
2023-08-19 13:24:29 +08:00
Yuhang Zhao
2c8bd8ce8c
win: minor improvements
2023-08-18 17:25:13 +08:00
Yuhang Zhao
9265735ac7
win: use Qt events to set system button state
2023-08-17 14:24:27 +08:00
Yuhang Zhao
3342a28895
refactor
2023-08-01 14:28:09 +08:00
Yuhang Zhao
86bc1c0142
cleanup & optimize, part 2
...
The file size of FramelessHelper binaries should be smaller than before. Core: Win32 MSVC2022 x64 release build, -20KB
The general performance should be improved, due to double lookups are all eliminated.
2023-07-30 18:28:38 +08:00
Yuhang Zhao
4ed21585b4
cleanup core module
...
Core mostly done. TODO: Widgets & Quick module
2023-07-29 15:29:38 +08:00
Yuhang Zhao
e67a91d668
refactor: remove all mutexes
...
They are currently not used and slow down the general performance.
2023-05-19 13:31:20 +08:00
Yuhang Zhao
a3cfa59d1d
improve dpi change experience
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-05-13 11:30:54 +08:00
Yuhang Zhao
b2561c16ba
minor refactor
2023-04-23 13:42:27 +08:00
Yuhang Zhao
3b8571401f
minor refactor
2023-04-11 17:09:58 +08:00
Yuhang Zhao
5ade3cfb74
fix hidpi position calculation
...
Task-number: #210
Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
2023-03-30 11:39:05 +08:00
Yuhang Zhao
598de50290
add synchronize api to wait for the ready signal
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-24 13:13:01 +08:00
Yuhang Zhao
14ccc990cf
general refactor, remove useless code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-05 14:01:46 +08:00
Yuhang Zhao
ed75e2f3e8
adapt to latest Qt code style
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-27 18:16:32 +08:00
Yuhang Zhao
7534a4631c
migrate to the <module/file> include pattern
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 14:27:10 +08:00
Yuhang Zhao
378aa7db12
fix nested frameless windows & other minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 13:43:51 +08:00
Yuhang Zhao
a381836ef7
linux: further improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 16:37:48 +08:00
1bbb
4844257fc8
支持嵌套无边框组件
2022-12-15 11:32:57 +08:00
Yuhang Zhao
c849217d43
fix build on linux and macos
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 14:55:17 +08:00
Yuhang Zhao
f00adba67c
replace QScopedPointer with std::unique_ptr
...
QScopedPointer is being deprecated in latest qtbase code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 11:59:53 +08:00
Yuhang Zhao
b1f52837d2
replace qAsConst with std::as_const
...
qAsConst is being deprecated in latest qtbase code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 09:30:16 +08:00
Yuhang Zhao
64ef4b25ca
fix MSVC warning found by /W4
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-06 16:06:13 +08:00
Yuhang Zhao
cb88b602fe
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-05 14:33:38 +08:00
Yuhang Zhao
48a1106fc0
Allow build with no private Qt modules
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-04 14:25:09 +08:00
Yuhang Zhao
ff5b171566
win: final fix of the multi-monitor bug
...
#141
#184
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-23 14:54:46 +08:00
Yuhang Zhao
3961ecb505
quick: fix a regression
...
Looks like we can't use overloads in QML documents.
Should fix #183
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-21 17:12:33 +08:00
Yuhang Zhao
3791802d3b
win: add support for mica alt and other tweaks
...
Add some more comments to the windows header.
Remove the usages of UseRoundWindowCorner.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-16 14:10:49 +08:00
Yuhang Zhao
2c93d7fe38
some minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-13 13:24:30 +08:00
Yuhang Zhao
524f65cc9b
win: some minor improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-11 15:25:39 +08:00
Yuhang Zhao
027780429d
win: add more safe guards to dpi hacks
...
And some other minor improvements.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-11 11:38:06 +08:00
Yuhang Zhao
70a71822da
use better solution to disable logging
...
Thank very much to @SineStriker !
Fixes : #181
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-10 14:15:05 +08:00
Yuhang Zhao
fcf51d6d73
refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 11:52:49 +08:00
Yuhang Zhao
92415fb61c
Add WindowBorderPainter and WindowBorder
...
1. Added WindowBorderPainter for QtWidgets
2. Added WindowBorder for QtQuick (uses WindowBorderPainter internally)
3. Adjust some header includes
4. Limit a Linux workaround to the appropriate Qt versions
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-10 13:35:37 +08:00
Yuhang Zhao
d483c39b9a
add way to disable window maximization
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-08 15:25:22 +08:00
Yuhang Zhao
07101273bd
win: refactor & simplify
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-26 11:18:13 +08:00