Commit Graph

243 Commits

Author SHA1 Message Date
Zhao Yuhang 85a3fe1b2f win: fix some minor bugs 2023-11-03 21:25:24 +08:00
Zhao Yuhang 78fc5057ab misc: general cleanup 2023-10-21 10:44:07 +08:00
Yuhang Zhao 4821e8982f win: system menu: allow user remove menu items 2023-10-20 10:47:53 +08:00
Yuhang Zhao c8511bacf6 demo: update 2023-10-08 10:16:58 +08:00
Yuhang Zhao 7d09a6b9c9 update 2023-08-27 17:33:48 +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 01f3750efd win: minor tweaks 2023-08-24 13:10:11 +08:00
Yuhang Zhao d71dc75b77 mica material: fix drawing on multi-monitor scenario 2023-07-15 16:10:48 +08:00
Yuhang Zhao 617a015b97 mica material: minor fixes of previous implementation 2023-07-02 11:44:54 +08:00
Yuhang Zhao 7c0d8c4b11 mica material: support reading very large image files 2023-07-01 18:16:57 +08:00
Yuhang Zhao 2b1623fbd6 cmake: hide detailed info if the user don't want it
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-05-20 15:32:48 +08:00
Yuhang Zhao 1ba9c9c918 refactor 2023-05-19 11:55:41 +08:00
Yuhang Zhao 32b055a7ab cmake: dump more info
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-05-18 20:38:05 +08:00
Dylan Liu 84745db4d9
Add Universal build for macOS and compile error fixed. (#217)
* Add Universal build for macOS.

* Fix compile error in example quick.

* Use cmake_dependent_option instead of option.
2023-05-17 20:19:31 +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 c197653efe examples: improve cmake script
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-21 09:34:44 +08:00
Yuhang Zhao 9e341e4e40 examples: update cmake project
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-19 16:31:24 +08:00
Yuhang Zhao 3523ea67ea cmake: update submodule
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-15 14:53:29 +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 544d3b898b minor cmake tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-02 13:07:09 +08:00
Yuhang Zhao 6063a962eb simplify cmake scripts
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-27 16:27:16 +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 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 819ffb79fb macOS: widgets: preserve the native title bar elements
Quick part to be done.
2023-01-14 18:32:47 +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
Yuhang Zhao f651116fda msvc: allow disable permissive checks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-30 11:01:43 +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 0924aeb51f linux: finalize x11 function tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-21 11:43:37 +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
1bbb 4844257fc8 支持嵌套无边框组件 2022-12-15 11:32:57 +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 d04eaabde7 minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 13:42:18 +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 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 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 3c50ab7714 win: some minor tweaks of the manifest file
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-19 16:38:04 +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 b9f5cf79c0 win32: add support for dark theme menu
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 16:17:04 +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