Commit Graph

539 Commits

Author SHA1 Message Date
Yixue Wang 71aaf6a024 fix: indirect inclusion of QSharedPointer
ddciicon.h does not explicitly include QSharedPointer, leading to
incomplete type. Include QSharedPointer explicitly.

Log: fix indirect inclusion of QSharedPointer
2023-10-27 10:53:28 +08:00
Yixue Wang dec5572b9b chore: add synchronization workflow
Add synchronization workflow to synchronize to DTK6.

Log: add synchronization workflow
2023-10-27 10:53:15 +08:00
deepin-ci-robot 0e8a4e0b91 chore: update changelog
Release 5.6.19.
2023-10-24 02:33:26 +08:00
deepin-ci-robot d6434448c1 chore: update changelog
Release 5.6.18.
2023-10-18 15:16:21 +08:00
YeShanShan 3b2949bbf3 fix: Wrong IconName for DIconEngine
The icon names of `IconEngine` and `DIconProxyEngine` are
inconsistent when there is no such icon.

Issue: https://github.com/linuxdeepin/developer-center/issues/5760
2023-10-09 09:09:18 +08:00
Yixue Wang 75633580dc fix: missing link when disable librsvg
When disable librsvg, we use QtSvg to implement dsvgrenderer. Link
to Qt(5/6)::Svg target.

Log: fix missing link when disable librsvg
2023-10-06 09:34:25 +08:00
chenhongtao 6bee9a679d fix: when iconName is absolute path
Log:
2023-09-25 11:09:58 +08:00
ck 4f8d3739b5 fix: svg with filter attribute rendering exception
Svg filters attribute are not supported by QSvgRenderer, and
it will not be. see https://bugreports.qt.io/browse/QTBUG-9081

XdgIconLoaderEngine(>3.6) use QSvgRenderer to render svg instead of
svg icon engines https://github.com/lxqt/libqtxdg/blob/master/src/xdgiconloader/xdgiconloader.cpp#L814

Archlinux DTK_DISABLE_LIBRSVG=ON by default https://github.com/linuxdeepin/dtkgui/pull/130

- turn off DTK_DISABLE_LIBRSVG option
- force get pixmap from icon engines
- fix DSvgRenderer::toImage return null image with empty elementId on DTK_DISABLE_LIBRSVG
2023-09-25 09:00:34 +08:00
ck eef2f42fea chore: find qhelpgenerator from property
depends qttools5-dev or qt6-tools-dev
add Build-Profiles to ignore package build
(dpkg-buildpackage --build-profiles=nodoc)
2023-09-22 11:36:32 +08:00
YeShanShan 1da5179b08 fix: Wrong value of DPalette::TextLively
TextLively is different between light and dark theme, otherwise
it can't see clearly in light theme.
2023-09-14 16:30:33 +08:00
wangyixue de4dc37e39 chore: update changelog
Release 5.6.17.
2023-09-08 16:40:52 +08:00
Fan PengCheng f9d2dcdeb9 fix: 修复应用异常退出后颜色主题未保存的问题
修改为设置后立即保存

Log: 修复应用异常退出后颜色主题未保存的问题
Influence: 应用的主题选项在退出重启后未恢复上一次的选择
Bug: https://pms.uniontech.com/bug-view-201203.html
Change-Id: I73b92fd781737e757827bbb6aca87887c2c16ce9
2023-09-01 11:06:12 +08:00
deepin-ci-robot 69e79f8e3a chore: update changelog
Release 5.6.16.
2023-08-22 15:17:45 +08:00
wangfei 09b956383e fix: dci icon cache key miss theme name
dci 图标缓存没有加上主题名导致可能在不同的主题时匹配到其他主题缓存的图标

Issue: https://github.com/linuxdeepin/developer-center/issues/4517
2023-08-21 14:49:36 +08:00
ck d3d7096c0d fix(build): ut failed on Qt6.4
Fix ut build
2023-08-21 14:15:33 +08:00
ck b211db014e chore: add DtkBuildHelper depends
dtkcommon-dev >= 5.6.16
2023-08-21 14:08:54 +08:00
YeShanShan 1bbeb9f475 fix: Compiling error in qt6.4
QThemeIconEntries changed from QList<QIconLoaderEngineEntry*>
to std::vector<std::unique_ptr<QIconLoaderEngineEntry>>
  QFont hasn't include QObject header file.
2023-08-17 16:38:30 +08:00
ck f08f6ea538 chore: ut build without source
- filedrag destroy server to emit serverDestroyed
- compare color sometime failed, convert to rgb first
- ut build without source(cmake -DEnableCov=ON)
2023-08-16 09:28:17 +08:00
wangyixue cd822bb2c8 chore: update changelog
Release 5.6.15.
2023-08-14 11:00:48 +08:00
houchengqiu c2b0782d00 refator: rewrite hasUserManual function
1.porting dbus interface(ManualExists) implementation to dtk

Log: rewrite hasUserManual function
2023-08-03 11:44:40 +08:00
houchengqiu 3f1960067b chore: Adaptation for Qt5.11
Adaptation for Qt5.11

Log: Adaptation for Qt5.11
2023-08-03 11:44:40 +08:00
ck 8f4319308b chore: add unit test
- make tests/test-recoverage.sh runable again
- DDciIconPalette
- DNativeSettings
- add a minimal qpa plugin for test
2023-08-02 16:23:10 +08:00
ck c2b8c1508b chore: do not show ui in ut
use QWidget::createWinId instead of QWidget::show
to create window handle(QWindow)
2023-08-02 16:23:10 +08:00
ck 07b454ccb7 chore: iconengine tweak and uint test
- forward declaration XdgIconLoaderEngine
- xdgiconloader headers position tweak
- XDG colorScheme color support alpha (css color is RGBA not ARGB)
- add ut_XdgIconProxyEngine ut_DIconProxyEngine
2023-07-31 13:29:16 +08:00
deepin-ci-robot 5f457d2225 chore: update changelog
Release 5.6.14.
2023-07-27 16:17:11 +08:00
ck afb7340011 feat: load app and qt Translation files
- interface: DGuiApplicationHelper::loadTranslator();
- auto load qt_xxx.qm && qtbase_xxx.qm && appName_xxx.qm
- add loadTranslator ut
2023-07-27 11:52:02 +08:00
ck 994133ca16 fix: dplatformtheme fetchPalette crash
nullptr check
2023-07-26 17:29:55 +08:00
wangyixue 9523642508 feat: add helper for high dpi pixmap
Add loadNxPixmap for high dpi pixmap.

Log: add loadNxPixmap
2023-07-26 14:29:30 +08:00
ck e7834e1763 fix: DFileDragClient::serverDestroyed nerver emit
emit serverDestroyed in ~DFileDragServer()
DDndClientSignalRelay::serverDestroyed emit DFileDragClient::serverDestroyed
add dfiledrag unit test
2023-07-25 08:56:50 +08:00
ck fa3ca10d03 fix(build): DIconTheme ut failed
DIconTheme::createIconEngine always create DIconProxyEngine
so DIconTheme::isBuiltinIcon && DIconTheme::isXdgIcon failed
add DIconProxyEngine::proxyKey() to get proxy iconengine's key
2023-07-21 16:13:51 +08:00
ck ba55aa6e7d feat: DIconTheme::findQIcon add fallback icon
support fallback icon
2023-07-18 11:00:28 +08:00
wangfei 1cb3939cf9 fix: build failed in qt6 due to proxyengine
adjust some about iconproxyengine to build qt6

Log: fix build failed in qt6 due to proxyengine
2023-07-13 13:05:41 +08:00
ck ff836690e5 chore: remove unused pro files
remove pro files
2023-07-12 09:43:34 +08:00
YeShanShan 95f8b5ffd3 refactor: Move dotsPerInch from normal function to slots
It exports to qt meta system for qml.
  and it doesn't break ABI compatibility depend on
https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B#Using_signals_instead_of_virtual_functions
2023-07-12 08:51:48 +08:00
wangfei 0b63795ee7 chore: add proxyiconengine
add proxyiconengine from qt5integration

Log: add proxyicnengine from qt5integration
2023-07-10 17:33:37 +08:00
deepin-admin-bot e17e250fe1 chore: Sync by 559e91167d
sync by github workflow

Log: none
Influence: none
2023-07-10 06:30:59 +00:00
SPUER 20c5c09315 chore: reduce compilation warnings
解决赋值返回警告

解决\l不能解析警告

解决\value不能解析警告

Issue: https://github.com/linuxdeepin/dtk/issues/96
2023-07-07 06:07:15 +00:00
wangfei 724af5ebf3 chore: add unit test about dciiconengine
add unit test about dciiconengine

Log: add unit test about dciiconengine
2023-07-07 09:54:54 +08:00
wangfei b810be77cb chore: adjust icontheme
dciiconEngine is added to createIconEngine interface.

Log: dciiconEngine is added to createIconEngine interface.
2023-07-07 09:54:30 +08:00
wangfei 98b9632f63 chore: add dciiconengine
add dciiconengine frome qt5integration

Log: add dciiconengine
2023-07-06 13:11:14 +08:00
ck d867a02cda refactor!: deprecate some interfaces in dtk6
- DGuiApplicationHelper -7
- DPalette -1
- DPlatformTheme -27 properties
2023-07-06 11:24:23 +08:00
wangfei 0d9e457d13 chore: add unit test about builtinengine
add unit test ut_builtinengine about builtinengine

Log: add unit test about builtinengine
2023-07-05 16:12:26 +08:00
WangFei 2c4cc71e0d
chore: adjust xdgiconproxyengine (#167)
add difference about xdgiconproxyengine from qt5integration

Log: add difference about xdgiconproxyengine from qt5integration

Co-authored-by: wangfei <wangfei@deepin.org>
2023-07-05 07:51:38 +00:00
WangFei 4350475fe1
chore: adjust builtiniconengine (#164)
add the difference about builtiniconengine from qt5integration

Log: add the difference about builtiniconengine from qt5integration

Co-authored-by: wangfei <wangfei@deepin.org>
2023-07-05 07:50:57 +00:00
WangFei 3cf033b048
chore: change OUTPUT_DIR variable in cmake (#163)
change OUTPUT_DIR to CMAKE_CURRENT_BINARY_DIR

Log: change OUTPUT_DIR to CMAKE_CURRENT_BINARY_DIR

Co-authored-by: wangfei <wangfei@deepin.org>
2023-07-04 03:36:24 +00:00
syn 536f1f9dff chore: ignore doxygen-theme folder
Log: 修复编译时加上BUILD_THEME宏后,自动拉取doxygen-theme导致git管理的项目产生污染

Task: https://github.com/linuxdeepin/dtk/issues/99
2023-07-03 17:21:36 +08:00
wangyixue 6588a86d71 chore: update changelog
Release 5.6.12.
2023-06-25 16:38:19 +08:00
ck 0ad02e6ce7 chore: update dconfig appid
1. dconfig meta file installed by libdtkdata.
2. appid switch to org.deepin.dtk.preference
2023-06-25 09:38:21 +08:00
ck 62b66a9f05 fix: ut failed
1. dciicon memery leak(ReaderData not delete)
2. DImageHandler memery leak
3. use png instead of svg (no need svg imageiohandler plugin)
2023-06-19 13:13:09 +08:00
ck dcede1f96d chore: Adapt Qt6 && Dtk6 compilation
Since xdgiconloader is not adapted to Qt6, libxdg is disabled by default when compiling Dtk6
Do not install dconfig file in dtkgui to avoid conficts with dtk6gui
C++ 17 by default
DVERSION ==> DTK_VERSION
cmake_minimum_required 3.13
tools install to CMAKE_INSTALL_LIBEXECDIR
2023-06-19 13:13:09 +08:00