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
139d5a41df
quick demo: a little improvement
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-15 14:34:14 +08:00
Yuhang Zhao
5e7ddb1864
quick: adapt macos updates
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-15 14:11:52 +08:00
Yuhang Zhao
6e79ba3f33
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-13 13:39:21 +08:00
Yuhang Zhao
653fa1d6f1
quick demo: fix for latest qt
...
The onClosing signal was removed in latest qt.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-12 09:11:29 +08:00
Yuhang Zhao
16479be799
quick demo: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-03 13:38:00 +08:00
micpub
32457c5538
fix qmake linux build, and fix the "Quick" example ( #194 )
...
* fix: qmake linux build
* little fix for the "Quick" example
Window.qml / ApplicationWindow.qml: fix: "FramelessApplicationWindow.onClosing" is not available in org.wangwenx190.FramelessHelper 1.0.
* remove xcb - as requested
2022-12-30 10:35:20 +08:00
Yuhang Zhao
840cf3060d
general fixes
...
fixed some minor issues
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 11:35:05 +08:00
Yuhang Zhao
b420e67fad
cmake: fix warning from Qt 6.5
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-13 15:58:49 +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
61eb467f94
remove license header from qrc files
...
They may break compilation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-08 11:37:21 +08:00
Yuhang Zhao
f956c1c002
cmake: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-05 17:12:17 +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
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
1ae0bd8fd6
examples: reuse common code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-17 13:43:38 +08:00
Yuhang Zhao
f15ca8daf0
fix various issues
...
1. Fix mica material doesn't work normally when used on multiple windows.
2. Fix build on Qt5.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-12 14:08:58 +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
9f17c8afdd
demo: disable lazy initialization for mica material
...
we need it anyway.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-09 10:15:48 +08:00
Yuhang Zhao
d1a410b498
cmake: avoid possible issue
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-28 11:28:54 +08:00
Yuhang Zhao
57a4d8875c
cmake: improve the build scripts
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-27 21:13:46 +08:00
Yuhang Zhao
34596db939
fix various issues found by user
...
Issue list:
1. MinGW lacks some definitions so there's compilation errors
2. The chrome buttons' foreground color is incorrect when the window is inactive.
3. Adapt to new macros from Qt dev branch.
4. Remove unneeded parameter from setApplicationOSThemeAware().
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-10 13:11:55 +08:00
Yuhang Zhao
7dda58deaf
free all resources during destruction
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-06 13:40:16 +08:00
Yuhang Zhao
7a35b09a74
add limited qmake support
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-08-31 16:34:30 +08:00
Yuhang Zhao
abf4b29dca
minor fixes of the last commit
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-08-31 10:45:26 +08:00
Yuhang Zhao
463ac0a999
add window icon support
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-08-31 10:21:24 +08:00
Yuhang Zhao
ce78c037b1
add some helper functionalities
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-08-28 19:25:22 +08:00
Yuhang Zhao
6c060b3946
demo: add shortcut to switch between fullscreen state
...
Can also help use better debugging the old style window frame
issue on Windows.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-08-21 15:38:43 +08:00
Yuhang Zhao
4fe67c9313
cmake: minor improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-27 09:36:28 +08:00
Yuhang Zhao
7616161699
Implement homemade Mica material & other improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-16 15:25:15 +08:00
Yuhang Zhao
9a93475f2b
fix typo: snap layouts --> snap layout
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-07 17:00:15 +08:00
Yuhang Zhao
389c8ad6d6
examples: add convenient script to deploy qt libraries
...
Currently only functional on Windows. macOS and Linux to do.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-07 15:34:31 +08:00
Yuhang Zhao
2806cc811b
code simplification, minor re-structure
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-07 13:43:09 +08:00
Yuhang Zhao
71f8a5aab1
add blurBehindWindowEnabled property
...
Current only implements for Windows,
macOS will be implemented later,
Linux won't be supported in the near future.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-03 16:01:19 +08:00
Yuhang Zhao
f90b49538a
add support for qmltc tool
...
Also remove one useless enum.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-07-01 15:52:28 +08:00
Yuhang Zhao
66250dbb6e
cmake: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-06-27 14:15:34 +08:00
Yuhang Zhao
a89f19af96
2.1.7 release
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-06-25 19:38:41 +08:00
Yuhang Zhao
6fe3dd1088
cmake: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-23 14:46:20 +08:00
Yuhang Zhao
1cd39fd7b2
quick: a little code simplification
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-14 10:02:42 +08:00
Yuhang Zhao
8042a78b8f
various fixes and improvements
...
1. Make all demo applications be able to record and restore the previous window geometry.
2. Improve the robustness of the widgets and quick implementation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-13 14:19:50 +08:00
Yuhang Zhao
a10ac4e32d
demos: simplify some code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-08 18:24:09 +08:00
Yuhang Zhao
1c6e02d81b
code tidies, prepare for the 2.1 release
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-05 18:02:38 +08:00
Yuhang Zhao
a97b1782ae
redesign the title bar interface
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-04 14:50:11 +08:00
Yuhang Zhao
306ebfc717
Refactor the Quick implementation, interface is now simpler
...
Now we use attached properties instead, it make things simpler.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-05-02 12:26:57 +08:00
Yuhang Zhao
ff8252aaf4
Add initial snap layout implementation
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-30 12:47:51 +08:00
Yuhang Zhao
2f629a9e5b
Quick: make the titleBarItem become a property
...
By making it a Q_PROPERTY we can use it more conveniently.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-25 14:50:41 +08:00
Yuhang Zhao
701d8d0927
fix build on 5.12 & add initial opengl demo
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-21 15:10:16 +08:00
Yuhang Zhao
2c0ec868ab
finish the linux implementation
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-16 16:55:51 +08:00
Yuhang Zhao
cd05b6ecdf
quick: finish qml -> cpp migrating
...
Convert all qml files to pure c++ implementation.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-16 09:52:38 +08:00
Yuhang Zhao
4f5044a58c
wip: quick: start migrating to modern usage
...
Still wip, but doesn't left much.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-14 17:33:09 +08:00
Yuhang Zhao
b5d2ae5888
quick: improve the standard titlebar's appearance
...
And some minor tweaks to the initialize() function.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-04-02 17:56:45 +08:00