Commit Graph

839 Commits

Author SHA1 Message Date
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 4896869123 use better name
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 10:00:18 +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 d25666b0e6 titlebar: fix calculation error of previous commit
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-14 20:54:29 +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 9e975e02e0 cmake: fix export error
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-14 12:59:18 +08:00
Yuhang Zhao d1f17eb239 cmake: add option to disable install
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-14 12:23:04 +08:00
Yuhang Zhao eb6fc55006 quick: remove unneeded enums, fix warning
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-13 17:47:37 +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 814d2ad12d cmake: detect qt library type
Fixes: #200

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-05 15:07:38 +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 3a97e712fb fixes repaint issue on macos
fixes:  #197

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-01 14:19:14 +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 4a903a5805 linux: improve configure log
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-28 11:33:24 +08:00
Yuhang Zhao a5586604e9 quick: fix build error
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-28 11:22:40 +08:00
Yuhang Zhao d4c087f627 linux: comment out some code that doesn't work
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-25 13:36:18 +08:00
Yuhang Zhao 7327179d77 linux: add temporary solution to get theme color
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-25 13:33:34 +08:00
Yuhang Zhao 8a1dcfb808 minor refactor
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-23 10:11:59 +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 ea6a070766 linux: fix the regression caused by previous refactoring
Sadly we have to bring back the GTK dependency at compile time.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-20 16:39:20 +08:00
Yuhang Zhao ba709ec598 fix linux ci
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-20 13:06:13 +08:00
Yuhang Zhao 62527f4f88 minor code tidies
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-20 11:59:25 +08:00
Yuhang Zhao 16501e9bd7 fix linux ci, finally
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 17:59:34 +08:00
Yuhang Zhao 55f67ac707 fix linux ci
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 17:53:28 +08:00
Yuhang Zhao 4e46ba4fb5 linux: fix build on Qt5
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 17:49:00 +08:00
Yuhang Zhao 768ab6da4b win: fix the border color, take 2
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 17:39:36 +08:00
Yuhang Zhao a381836ef7 linux: further improvements
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 16:37:48 +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 c3fa2f6920 minor fixes of previous commit 2022-12-16 10:48:38 +08:00
Yuhang Zhao 5b36fe8a81 linux: add missing file
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-15 15:56:42 +08:00
Yuhang Zhao 34ba90376b linux: remove the build-time dependency of libxcb and libgtk
We can load them dynamically at run-time.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-15 15:48:56 +08:00
Yuhang Zhao 8683a14a3c fix compilation error
fixes: #191

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-15 13:09:51 +08:00
1bbb 4844257fc8 支持嵌套无边框组件 2022-12-15 11:32:57 +08:00
Yuhang Zhao d5d1edd690 win: add ms license header
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-14 16:23:27 +08:00
Yuhang Zhao 493663a787 win: minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-14 16:17:07 +08:00
Yuhang Zhao 45225d11d8 remove needless terminate character
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-13 16:31:00 +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 d4293e0a55 win: refactor
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-13 11:36:41 +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 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 ed3771c949 replace qRound with std::round
It's better to do so.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 09:34:46 +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 e77341d128 win: adjust one version condition
It's decided that the fix will not be cherry-picked to the 6.2 branch.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-08 15:36:27 +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 8003f79e17 icon: replace Micon with our own custom one
Because Micon has some license issues.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-06 16:53:37 +08:00