Commit Graph

101 Commits

Author SHA1 Message Date
Chen Bin c0f2e1ee54 feat: 适配社区版5.15环境下调色板问题
qt5.12中新增了PlaceholderText颜色,添加与5.11
颜色一致的对应颜色到此调色板中。使风格保持一致

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-66654.html
Change-Id: I247d1619b9ec24582c09945bb2b3f4cd913fd4f5
(cherry picked from commit b27f489812)
2021-03-24 14:29:42 +08:00
chengyulong e79c74d2e9 docs: 添加DGuiApplicationHelper::setSingleInstanceInterval详细注释
添加DGuiApplicationHelper::setSingleInstanceInterval更详细的注释,增加对成员变量waitTime默认值和相关成员函数setSingleInstance的使用

Log: 添加注释
Change-Id: Ie0aeed59e3c41c9e06c131f1e1724473d10d42de
2021-03-19 13:15:40 +08:00
chenbin 8806b496f9 style: 修改调色板浅色模式下TextTips的颜色
将调色板中浅色模式下的TextTips颜色从#8AA1B4修
改为#526A7F

Log: 
Task: https://pms.uniontech.com/zentao/task-view-57698.html
Change-Id: I57638bc4734deef0ccf272da54c08df38f603bb5
2021-03-04 10:02:08 +08:00
chengyulong 26de283225 feat: 增加单元测试覆盖率
1.对项目目录结构进行优化,增加lcov计算单元测试覆盖率。
2.fontmanager为新增的,不在maintain中添加。

Log: 增加lcov计算单元测试覆盖率
Change-Id: I4454aee03a1dffb8e9bc443b967aa84e7dc57a60
2021-03-04 09:45:53 +08:00
ck 45e4798c1d fix: 完善dtkgui依赖dtkcommon
libdtdtkgui5依赖libdtkcommon, 因为filedrag的dbus配置文件移动到dtkcommon中

Log: 新增dtkcommon依赖
Change-Id: Ib5bc516a932b3883b624cb1bc02243b7959aeb9c
2021-03-03 15:10:39 +08:00
sunkang f935c66abf fix: 适配dtkgui多版本共存的处理
1. 删除src/dbus/com.deepin.dtk.FileDrag.conf 文件,此文件转移到libdtkcommon中

Log:
Change-Id: I9346141589524a209f31e8b195dfe0721778d23e
(cherry picked from commit 2a11ae19920829a411e4faabec8cbc56e50b654b)
2021-03-03 15:08:11 +08:00
ck 316811dcd6 chore: 移除注释的一行
移除注释的无用代码

Log: 删除无用的注释代码
Change-Id: I896ba53ba6478460e931eff9c738d9059b02e8e1
(cherry picked from commit 183fcd429b)
2021-02-26 15:28:57 +08:00
sunkang 73ff97c0fc fix: 修复example生成的临时desktop文件没有删除导致的启动器显示问题
修复example生成的临时desktop文件没有删除导致的启动器显示问题

Log:

Change-Id: Iae77bed7fa3ab15ddfb76a95318e11e527d0ea7e
2021-01-28 17:53:16 +08:00
zccrs 23984af7ba fix: 修复在销毁DSvgRenderer时断言失败
Q_GLOBAL_STATIC创建的全局对象会在程序退出阶段销毁, 然而
不能保证在这之后DSvgRenderer就不再被使用, 往往会出现RSvg
对象销毁之后DSvgRenderer对象才被销毁, 将导致析构时断言
__rsvg->isValid失败.

Log: 
Change-Id: I3ed2613a88c5828c79a96653f33379411d41fdb1
2021-01-28 17:50:52 +08:00
zccrs 6355e102b4 fix: 修复DPlatformTheme的主题继承时可能无法产生属性变化的通知信号
假设 A 被 B 继承,B 被 C 继承,修复当A的主题属性变化时未能通知
到C的问题。
当为窗口创建DPlatformTheme对象前,先确保当前的appTheme已经被
初始化,否则会误将systemTheme当作了主题继承对象。

Log: 
Change-Id: Ic0ba7007c39e8b0e257e11ef06f26093a09b8f65
2021-01-28 17:43:38 +08:00
zccrs 894800db0f chore: 添加对PT_GNU_STACK的指定
仅在龙芯架构上添加,默认时mips的编译器未指定相关参数
导致deb包构建时对libdtkgui动态库检查失败

Log: 
Change-Id: If9f243664828c7017b2fbfe852894ff18227af44
2021-01-28 17:41:29 +08:00
chengyulong 8b0e24421e fix: 修改DRegionMonitorPrivate的CursorEnter和CursorLeave错误的问题
修改DRegionMonitorPrivate的信号CursorEnter和CursorLeave与dbus相同。

Log: 修改DRegionMonitorPrivate的CursorEnter和CursorLeave错误的问题
Change-Id: Ib5c6d9301e96c431e73c51ce46d48b8f621bddc7
(cherry picked from commit 16d8bf2dee)
2021-01-12 13:33:11 +08:00
chengyulong 52c931882f fix: DRegionMonitor优化,增加设置监听鼠标移动、鼠标按键、键盘按键事件的接口
DRegionMonitor因为需要调用dbus,监听鼠标移动影响性能,新增设置监听鼠标移动、鼠标按键、键盘按键的接口。增加cursorEnter、cursorLeave信号。监听全屏区域时调用RegisterArea。增加WatchedFlags的鼠标中键、上下滚动flag

Log: DRegionMonitor优化,增加设置监听鼠标移动、鼠标按键、键盘按键事件的接口
Task: https://pms.uniontech.com/zentao/task-view-45197.html
Change-Id: Id2df84097d3e7e39df37176e23fbf4383612d24d
(cherry picked from commit c244347686)
2021-01-12 10:42:28 +08:00
ck b987e4c0e3 fix: update abi.json
abi工具升级, gerrit需要更新这个才可打包成功

Log: 更新abi.json文件
Change-Id: I0eea84bfff658aecc7b6c7949d0d486b1a382613
2021-01-12 10:34:39 +08:00
ck a238a9466a feat: 重载dh_makeshlibs
安装时依赖dtk的版本号要不小于构建时的版本,需要系统部改脚本支持

Log: 修改打包规则
Change-Id: I7b6ce39ab64270072f05e8360c0ca6ebf7727ca6
2020-11-23 13:12:47 +08:00
lxz 124068be0e
feat: add github action
add github action

Log:
Change-Id: I9c85c2fc33969c2c186a501a62ded98543ad5376
2020-11-10 13:37:05 +08:00
ck 5f6ab73182 fix: disable text color hard to read
针对QPalette::Text的disable状态在暗色主题下在dialog透明模糊时,如果后面有白色背景的应用几乎看不清文字的修复。修改方法是将原来混合颜色改成降低透明度,disable时透明度未原来的40%(来自设计的建议)

Log: 修复控制中心在白色背景下,开启屏幕的第一个屏幕名称看不清的问题
Bug: https://pms.uniontech.com/zentao/bug-view-53017.html
Change-Id: Id6ce0d4bacaa7755b5d108c484d7707760bd4a72
2020-11-10 09:06:02 +08:00
Robin Lee 0e9633f2e7 feat: Initial packit setup
This commit contains the specfile for building the official package for Fedora
with a Packit setup.

Ultimately, a unified specfile is targeted for Fedora and any other rpm-based
distributions, e.g. openEuler.

And Packit(https://packit.dev/) is a tool for maintaining specfile within
upstream source. It requires a simple config file(.packit.yaml).

Log:
Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
Change-Id: I59b00d9a21b1c00a337684e5a4e3c9b2354d79f2
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/8522
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: zhangjide <zhangjide@uniontech.com>
2020-10-23 08:56:23 +08:00
zccrs ea60f6b0bb fix: fallback to parent theme for the windowRadius property
支持读取windowRadius属性时fallback到上一级的theme主题

Change-Id: I78a801b6ee216139b9aaf5644731b7ac6390704c
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/8260
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-21 17:54:39 +08:00
xmuli 6ae8f77d42 fix: Fix DToolTip control, also modified to rounded corner values.
The result is not as expected, not aesthetically pleasing, so it needs to be left alone.

Log:
Change-Id: I72624d44247d71e3eef8f9fddaddc94342c431a5
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/7957
Reviewed-by: zhangwengeng <xmulitech@gmail.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-20 09:07:15 +08:00
xmuli de1f742ede fix: Fix default display right angle
A call to `FETCH_PROPERTY("DTK/WindowRadius", windowRadius)` will return -1 by default, resulting in the right angle parameter. So the cup is fixed here.

Log:
Change-Id: I4988af2bdd0a57ae99d9c5562fe8ba6808de8700
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/7769
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-16 15:55:14 +08:00
xmuli a3b9836b83 feat: Adding a Window Rounded Rectangle Interface
The deepin community version can change the window corner rounding size.

Log: The deepin community version can change the window corner rounding size.
Change-Id: I1e097bb30fd6ac6557dd255d1a70ee0e12a8c062
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/7495
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: zhangyueqian <zhangyueqian@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-10-14 17:04:12 +08:00
ck e717fdaedd feat: dpalette添加打印信息输出
添加打印信息输出,方便调试,更新api.json

Log: DPalette添加打印日志支持
Change-Id: I92d779edd86717a4ab46d366c9be85fb005208df
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/5096
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: caitongxun <caitongxun@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-16 17:34:02 +08:00
ck 6d92f7ee2d fix: lib未指定版本号时加载成了dev包
1.QLibrary未指定第二个参数时,会找到dev包,在非开发环境时会导致加载失败。现象是svg无法渲染(即应用无图标了)。2. 更新abi.json

Log: 修复加载lib包不对的问题(更新abi.json)
Change-Id: Ie210866e090e8b6a94af34fc6fbbbd76bd25b4ef
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/2599
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-24 09:49:01 +08:00
chenbin 3d3f3de410 fix: 去除dsvgrenderer.cpp文件中INIT_FUNCTION产生的警告
修改类型转换方式,替换reinterpret_cast转换方式,增加decltype关键字进行转换以去除编译警告;并去除部分隐式转换造成的的编译警告

Log: 去除dsvgrenderer.cpp文件中的编译警告
Change-Id: I051ce3db25ba49f66f4be0d2347ea73da1ed81fd
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/2190
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-18 14:12:49 +08:00
zccrs 76f129da63 refactor: remove libqt5x11extras5-dev depend
只在一个地方使用了QX11Info,但是却导致链接了一些X11的库
所以使用native接口调用移除了对QX11Info的依赖

Change-Id: Ia272e6bf9c50ba23c3fe9148c8c329660846d410
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/2131
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-17 13:22:34 +08:00
zccrs 4c159f015d refactor: remove link the librsvg-2.0
将对librsvg的依赖改为使用QLibrary动态加载
增加了libdtkgui库的加载速度

Change-Id: Icfbfbc80f504c789cc313c27e204c5c84bea3695
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/2130
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-17 12:34:16 +08:00
ck 94e6ed00f1 fix: dtk窗口隐藏再显示无法通过窗管菜单关闭
设置MotifFunction时,既设置了close又设置了FUNC_ALL,就会出现无法关闭的情况,kwin中有这样的判断逻辑

Log: 修复应用关闭到托盘后再次显示无法通过任务栏菜单关闭所有关闭
Task: https://pms.uniontech.com/zentao/bug-view-3391.html
Change-Id: Id35b905a55159631ee1cb46c8d69a8eac5ee1a6c
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/1856
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-13 15:31:42 +08:00
ck a1d77d3f1d feat: add rpm spec
行业板打rpm包需要添加spec文件

Log: 支持rpm打包构建
Change-Id: I383acfb32526015f8a4f05c1ebd611b82df0cb10
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/1529
Tested-by: chenke <chenke@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
2020-08-11 15:38:34 +08:00
ck b227464a40 feat: 新增windowFromPoint接口
获取指定位置的窗口,需要自己释放内存

Log: 新增windowFromPoint接口
Bug: https://pms.uniontech.com/zentao/bug-view-30174.html
Change-Id: I26d8ba04d3497832312129a660c6d01ea8fd9e30
Reviewed-on: http://gerrit.uniontech.com/c/dtkgui/+/1158
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-06 10:39:24 +08:00
ck 8219b171f3 fix: 加入symbols文件后有的架构打包失败
文件名改为 symbols.amd64 只在amd64 平台检查abi兼容

Log: 修复加入symbols文件后有的平台打包失败
2020-07-02 18:53:48 +08:00
ck 557caf63d3 fix: function name typo and default waitTime
修改接口的一个拼写错误,将原来的接口标记为废弃,默认等待时间和QLocalSocket 一致 3000ms

Log: 修改默认等待时间和接口拼写错误
Task: https://pms.uniontech.com/zentao/task-view-28124.html
2020-06-29 10:39:08 +08:00
lyym f774bfc4f2 abigail: 集成dabi的json文件到包中
通过json文件来对比检查EXPORT_SYMBOL的函数是否发生改变,在debian目录加入了之
前的版本生成的json文件用来和基于当前生成的做对比

Log: 加入用以对比检查EXPORT_SYMBOL的函数是否发生改变的json文件
Task: https://pms.uniontech.com/zentao/task-view-28032.html
2020-06-28 17:48:41 +08:00
ck b279354875 fix: delete symbols file
Log: symbols文件错误导致sw和i386编译失败。暂时删除。
2020-06-23 17:46:13 +08:00
chengyulong_cm ab57dd8dd0 add: add symbols file 2020-06-18 19:21:22 +08:00
chengyulong b5539b26fe fix: bug27468,注销PC后,打开语音记事本,打开两个语音记事本应用窗口
将语音记事本设置为开机启动后,重启或注销再重新登陆后在该应用程序自启动前可手动启动一个语音记事本导致会启动两个语音记事本,原因是在判断是否已经存在正在运行的语音记事本时等待QLocalSever通知时间太短,故此将原本等待100ms改为等待1000ms,增加一个设置等待时长的接口。增加等待时长可能会增加程序自启动的耗时。

Log: 修复语音记事本设置为开机启动后,重启或注销系统后可打开两个语音记事本的bug。
Bug: https://pms.uniontech.com/zentao/bug-view-27468.html
2020-06-17 18:19:59 +08:00
刘阳 c3e0ce45ca fix: lintian command check libdtkgui5*.deb occured error
使用 lintian 命令检查 deb 包报错;E: libdtkgui5: dbus-policy-excessively-broad。
2020-06-01 16:09:51 +08:00
zccrs 2582f298d6 refactor: disable dh_makeshlibs 2020-05-06 12:58:47 +08:00
zhangwengeng 17d1d6af12 license: switch to LGPLv3 license 2020-04-24 17:55:17 +08:00
zhangwengeng eb80c8d763 license: switch to LGPLv3 license 2020-04-24 16:52:09 +08:00
Gary Wang e0ff824d03 Release 5.1.2 2020-04-09 14:41:06 +08:00
sunkang 3543ab0ac6 feat:添加Launcher API接口
1.添加了测试用的demo
2020-02-21 15:08:56 +08:00
zccrs ea029575d8 hasComposite default value to true on non-x11 platform 2020-02-21 14:31:38 +08:00
justforlxz 66a653f465 fix: ldap user cannot use single instance
group scope use gid and user scope use uid
2020-02-20 09:44:57 +08:00
Ding Heng 2a62e855bc Update .gitlab-ci.yml 2020-01-08 10:44:36 +08:00
zhangwengeng f15f19b10c feat: Add ObviousBackground enum 2020-01-06 13:10:02 +08:00
zccrs d402053227 feat: add DGuiApplicationHelper::isXWindowPlatform 2019-12-30 20:08:13 +08:00
ck 91d3c11943 docs:add dfiledrag comments 2019-12-24 16:01:46 +08:00
wang 6b6efe32ea feat: 添加dthumbnailprovider注释 2019-12-24 13:45:53 +08:00
wang ab1f527976 feat: 添加dsvgrenderer类的注释 2019-12-23 14:23:37 +08:00