146 Commits

Author SHA1 Message Date
Li Tao
30b1ce633c fix(blutetooth): 蓝牙插件弹框界面问题
1.选中图标样式错误。 2.列表之间没有间隔

Log: 修改了插件弹框显示问题
Bug: https://pms.uniontech.com/zentao/bug-view-52349.html
Change-Id: I80dbfecf66a9fead82df3d975f325110313b9f45
2020-11-27 17:51:04 +08:00
Li Tao
84fec9578b fix(bluet): 修改了蓝牙界面问题
字体采用T4 Mudium,设备图标颜色:深色模式下为#ffffff 浅色模式下为#000000,关闭按钮和选中图标距离右边边距为10

Log: 蓝牙弹框界面问题
Bug: https://pms.uniontech.com/zentao/bug-view-52349.html
Change-Id: I3191bcddab4458f9aa3f4f91c4287d20c292be13
2020-11-26 20:48:55 +08:00
chenyunxiong
a19ecbe757 fix(bluetooth): 当蓝牙适配器id相同时,为了防止内存泄露,不应该替换map的元素。
Adapter为动态分配的内存空间,如果直接替换,可能导致这个变量无法被管理。所以如果传入相同的id指代的应该是同一个适配器,不需要替换。

Log: 当蓝牙适配器id相同时,为了防止内存泄露,不应该替换map的元素。
Change-Id: I3f0a4b9f46d728cc70c3d8a57cefa4fda2b908d8
2020-11-25 13:07:46 +08:00
Fanpengcheng
fbc61d007b fix: 修复鼠标未移出任务栏是任务栏就自动隐藏的问题
任务栏隐藏靠的是监控区域外是否有鼠标移动,这里的是监控区域未更新导致

Log: 修复鼠标未移出任务栏是任务栏就自动隐藏的问题
Bug: https://pms.uniontech.com/zentao/bug-view-49297.html
Change-Id: Ic5fea75fd5c95f8a086d30826fcceb19c8459fad
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/6114
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-24 13:09:40 +08:00
yexin
84cbc4454a fix(bluetooth): 任务栏蓝牙开关关闭刷新按钮隐藏
关闭任务栏蓝牙菜单,停止扫描蓝牙设备,刷新图标隐藏

Log: 关闭蓝牙开关概率性出现刷新按钮还在刷新的情况
Bug: https://pms.uniontech.com/zentao/bug-view-44902.html
Change-Id: I88b76d45628cc869ab8a518f147b82a1961192d7
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/3137
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: niecheng <niecheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 10:08:47 +08:00
yexin
47535d2dfa feat(bluetooth): 其他设备列表数据不消失
扫描结束后,不管多少分钟后,其他设备列表数据不消失,点击列表选项排到首行并且开始转圈圈连接

Log: 不管多少分钟后蓝牙其他设备列表数据不消失
Task: https://pms.uniontech.com/zentao/task-view-33527.html
Change-Id: I5e924193628d5a868b4a0ed8ed52df7d1a426785
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/3027
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Reviewed-by: wangwei <wangwei@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-01 09:33:43 +08:00
范朋程
26df6a2871 feat: 限制缩放情况下任务栏的最小高度,防止显示图标异常
任务栏的最小高度范围为40-100,在开启缩放情况下,最小就不应该是40,比如开启1.25倍时,应为50才对

Log: 限制缩放情况下任务栏的最小高度,防止显示图标异常
Change-Id: I2b27f708636c4a0ff80f65e9bccc3bd4641fe201
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/3024
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Reviewed-by: pengwenhao <pengwenhao@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-31 13:12:49 +08:00
yexin
b8d7f24ebe feat: ConnectDevice蓝牙接口参数改变
新增蓝牙扫描结束3分钟后,点击列表项设备连接,连接设备接口新增蓝牙设备参数

Log: ConnectDeviece蓝牙接口参数改变
Task: https://pms.uniontech.com/zentao/task-view-33527.html
Change-Id: Ia4d988d31f04307a4e67f95e49f39947cb59805d
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/2753
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: wangwei <wangwei@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-28 18:19:05 +08:00
yexin
99f76ab8b9 fix: 概率性出现蓝牙开关关闭的情况下,蓝牙选项依然存在,而且刷新按钮还在刷新
删掉蓝牙设置的布局

Log: 概率性出现蓝牙开关关闭的情况下,蓝牙选项依然存在,而且刷新按钮还在刷新
Bug: https://pms.uniontech.com/zentao/bug-view-33367.html
Change-Id: I471757cea51f0637c63c3774bb3cbbdcfff0d329
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/2714
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: wangwei <wangwei@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-25 18:56:30 +08:00
liuxing
73dff8bd03 fix(blutooth): 创建新用户后任务栏蓝牙状态与控制中心不一致
原因后端connectState值有错为false,控制中心根据这个字段+state设置蓝牙状态,任务栏只根据state设置状态,导致两边不一致

Log: 修复创建新用户后任务栏蓝牙状态与控制中心不一致问题
Bug: https://pms.uniontech.com/zentao/bug-view-43271.html
Change-Id: I0b57ff951f40cb3fe056656de071fa0d0c073aa4
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/2541
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-20 21:45:08 +08:00
liuxing
11a934ea04 fix(bluetooth): 关闭蓝牙开关,蓝牙设置依然显示
关闭蓝牙开关,蓝牙设置依然显示,与需求不符,需求要求:关闭蓝牙模块时,仅显示蓝牙模块名称,及开启/关闭设置按钮

Log: 解决关闭蓝牙开关时依然显示与需求不符
Bug: https://pms.uniontech.com/zentao/bug-view-42467.html
Change-Id: I0b8e8368ccbe870deb37883d6e1fb3e4c80ab949
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/2072
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: lizhongming <lizhongming@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-08-14 20:18:53 +08:00
范朋程
5a15ae7f17 fix: 修复符号冲突导致的概率性崩溃问题
语音助手中使用的类TipsWidget与任务栏项目中的同名类的实现不一样,导致符号冲突
解决方法是在任务栏的代码中加上命名空间,

Log: 修复符号冲突导致的概率性崩溃问题
Bug: https://pms.uniontech.com/zentao/bug-view-35037.html
2020-06-30 09:26:59 +08:00
fengshaoxiong
44af20205a fix(bluetooth): 蓝牙关闭1分钟后重新打开后,不刷新蓝牙设备
蓝牙重新打开后,需要根据是否需要扫描,触发扫描操作

Log: 解决蓝牙关闭1分钟后重新打开后,不刷新蓝牙设备问题
Bug: https://pms.uniontech.com/zentao/bug-view-35148.html
2020-06-27 10:04:33 +08:00
zhaolong
966bf0f465 fix(bluetooth): 蓝牙音响不回连
关闭蓝牙适配器时,对已连接设备未做断开处理,致使后端未移除保存的连接配置

Log: 修复任务栏关闭蓝牙后再开启蓝牙,蓝牙音响不回连的问题
Bug: https://pms.uniontech.com/zentao/bug-view-34968.html
2020-06-26 14:53:32 +08:00
fengshaoxiong
a8d0e8fea6 fix(bluetooth): 蓝牙关闭重新打开后,还显示已经关闭的蓝牙设备
任务栏关闭蓝牙设备后需要主动发送ClearUnpairedDevice Dbus消息给后端

Log: 解决蓝牙关闭重新打开后,还显示已经关闭的蓝牙设备问题
Bug: https://pms.uniontech.com/zentao/bug-view-34997.html
2020-06-24 16:55:52 +08:00
wangxuwen
165d532d52 feat: the dde-dock will be distroyed sometimes
在切换主题时任务栏有时后会崩溃

Log: 修复任务栏在切换主题时崩溃问题
Task: https://pms.uniontech.com/zentao/task-view-27179.html
(cherry picked from commit 87fe36c1490a7e6e54bcc26c5a27d7f76312cd1c)
2020-06-23 19:14:05 +08:00
zhaolong
946bca3ed5 fix(bluetooth): tooltips一直显示正在连接
外部设备删除时未更新蓝牙适配器状态

Log: 修复蓝牙连接成功,在控制中心断开连接并忽略设备后,dock提示正在连接的问题
Bug: https://pms.uniontech.com/zentao/bug-view-34814.html
2020-06-23 19:10:55 +08:00
fengshaoxiong
4ccef9e2df fix(bluetooth): 蓝牙功能在关闭的时候。偶尔出现显示重叠问题;
由于蓝牙功能在关闭的时候是按照连接和未连接的列表参数计算布局,而有时候会存在连接中和断开中的蓝牙设备状态,没有使用总的参数表计算布局导致的

Log: 蓝牙功能在关闭的时候。偶尔出现显示重叠问题;
Bug: https://pms.uniontech.com/zentao/bug-view-33367.html
Bug: https://pms.uniontech.com/zentao/bug-view-34640.html
2020-06-23 09:40:41 +08:00
fengshaoxiong
de1d0d6eaa fix(bluetooth): dde-session-daemon重启后,蓝牙设备显示混乱;
dde-session-daemon重启的时候,同一个Id的蓝牙设备会再次添加一次,因此需要先移除以前的

Log: 修复了dde-session-daemon重启后,蓝牙设备显示混乱
Bug: https://pms.uniontech.com/zentao/bug-view-33367.html
2020-06-20 19:53:11 +08:00
fengshaoxiong
1ed68410aa fix(bluetooth): 点开任务栏蓝牙模块,显示重叠且多了几个开启项
在控制中心点击连接蓝牙设备,弹出pin框的时候,点击任务栏的关闭蓝牙按钮,这个时候只获取了蓝牙连接和未连接状态的设备,需要获取所有的蓝牙设备并关闭

Log: 修复了蓝牙显示重叠问题
Bug: https://pms.uniontech.com/zentao/bug-view-33367.html
2020-06-17 14:39:29 +08:00
范朋程
ee83bb1cba fix(cppcheck): cppcheck检查
静态代码检查,按照提示修改了所有合理的警告内容,部分内容为cppcheck误报,不处理

Log: 按照静态代码检查工具给出的结果进行修改
2020-06-16 13:54:23 +08:00
zhaolong
b04b9bb6d2 fix: 状态图标颜色变化
将状态图标由SVG图标换为自定义绘制控件,该控件可随系统活动主题色变化而变化

Log: 修复网络,蓝牙插件设备状态图标颜色不会随系统活动色变化而变化的问题
Bug: https://pms.uniontech.com/zentao/bug-view-31253.html
2020-06-13 16:15:37 +08:00
zhaolong
212789567e fix(bluetooth): 去掉正在连接状态图标
需求改动去掉插件正在连接状态图标

Log: 应需求改动去掉正在连接状态图标
Task: https://pms.uniontech.com/zentao/task-view-25677.html
2020-06-12 09:50:13 +08:00
zhaolong
4e4639c90b fix(bluetooth): 蓝牙状态指示异常
当蓝牙同时连接多个外设时,其中一个断开后,是以当前断开设备状态作为适配器状态,现改为以多个设备状态来判断蓝牙适配器的实际状态

Log: 修复当只有一个已连接蓝牙设备时,任务栏蓝牙图标置灰、不显示已连接的蓝牙名称和状态的问题
Bug: https://pms.uniontech.com/zentao/bug-view-31390.html
2020-06-11 12:10:35 +08:00
fengshaoxiong
2cf9f917bd fix(bluetooth): 任务栏蓝牙插件一直在刷新蓝牙设备列表
增加刷新按钮,后端设置刷新时间,刷新时间到了之后给前端发送刷新状态的Dbus信号根据状态改变按钮状态。

Log: 增加刷新按钮,每次点击刷新后,扫描设备且刷新列表持续1min;完成后,可点击再次刷新扫描蓝牙设备1min
Bug: https://pms.uniontech.com/zentao/bug-view-31369.html
2020-06-10 15:49:55 +08:00
zhaolong
c0769f9e7a fix(bluetooth): 蓝牙已连接状态图标显示异常
自测时发现蓝牙已连接图标颜色与主题不符,更改图标命名

Log: 修复自测时发现蓝牙已连接状态图标显示不对问题
2020-06-04 15:54:14 +08:00
zhaolong
924a0a1e84 feat(bluetooth): 蓝牙设备图标显示
蓝牙设备显示deviceItem中添加显示设备型图标label,修改devieItem构造方式,使之在构
造时能获取设备蓝牙类型并创建相应图标显示label;由于调整了构造方式、增加了显示项
,所以调整了设备名称显示长度和设置方式。资源文件添加不同主题蓝牙设备图标并使之随
系统主题而变换。

Log: 根据V5.1新增需求文档地改动,新增显示蓝牙设备图标
2020-06-03 15:41:11 +08:00
fpc_diesel
4413edf3ab docs:update ts 2020-06-02 09:55:55 +08:00
fengshaoxiong
8934dca33e fix : show two bluetooth when connect one bluetooth constant
连接一个蓝牙设备,任务栏显示连接了两个相同的设备(Bug : 29425)
2020-06-01 18:01:14 +08:00
fpc_diesel
3354169738 fix:format code 2020-05-14 19:57:53 +08:00
zhaolong
364ceff32e fix(bluetooth):right-click menu shows exception
右键菜单会出现在点击"打开蓝牙"菜单项后一直显示"打开蓝牙"(盘古集成测试不通过) task:21278

(cherry picked from commit 71f9cf3f857925f878cb10ed65eb5438e57d3586)
2020-05-14 13:16:49 +08:00
zhaolong
4303f90d75 fix(bluetooth):popups display truncated
task20793 【TR4】【桌面专业版】【SP1】【华为】【Kunpeng920】【uos-20-pangu-daliy-20200424-build46】【任务栏】任务栏蓝牙显示截断

(cherry picked from commit 619ba29a258a215868a05e83f543f8a030f08d1d)
2020-05-14 13:14:57 +08:00
zhaolong
1b6db122f3 fix(bluetooth):popup and tooltips display are abnormal
bug24279 【TR4】【桌面专业版】【SP1】【华为】【Kunpeng920】【uos-20-pangu-daliy-20200505-build48】【任务栏-蓝牙】任务栏蓝牙tooltips显示异常,功能无法使用

(cherry picked from commit 882ad1ee7704dfc824019a391a3d35efd49e0e23)

# Conflicts:
#	translations/dde-dock.ts
#	widgets/tipswidget.cpp
#	widgets/tipswidget.h
2020-05-14 13:14:46 +08:00
fpc_diesel
20bb074f01 refactor(bluetooth&network):code self test
task21255 [任务栏]蓝牙和网络插件部分的代码自检

(cherry picked from commit 581050c5b811ccbd36202d74b0c8007d5d4b29f4)
2020-05-14 13:13:25 +08:00
fpc_diesel
0d835e0fec fix(bluetooth):Fix bluetooth unavailable problem after standby recovery
21173 #TR4A#DTS2020042702663|CPM2020043000060#【HUAWEI】【Pangu】【短距+BT】S3功能验收出现待机恢复后BT功能不可用

(cherry picked from commit e743088f8bde9e8faccbead1809db9fa86fd2500)
2020-05-14 13:12:16 +08:00
zhaolong
4d82f59eaa fix(bluetooth):the bluetooth popoup shows an exception
task21004 【TR4】【桌面专业版】【SP1】【华为】【Kunpeng920】【uos-20-pangu-release-20200428-build26】【dock】dock栏操作蓝牙开关功能异常

(cherry picked from commit ac9dc42c1ea18146d30d135643120c8f5b2fd1b0)
2020-05-14 13:12:13 +08:00
zhaolong
a4113538be fix(bluetooth):the device name is only half displayed
task20946 任务栏蓝牙插件,蓝牙名称只能显示为界面宽度的一半长度

(cherry picked from commit 1757dd92947a9805876b0bd4a168444e85fc23c0)
2020-05-14 13:12:09 +08:00
zhaolong
3549da8f6e fix(bluetooth):popup contents show exceptions
蓝牙弹窗热点显示异常 task:20792

(cherry picked from commit aed005da326d2c994c0c17d4d0fff362820d8c00)
2020-05-14 13:12:03 +08:00
zhaolong
028ee46568 refactor(bluetooth):adjust poupop window view
调整弹窗外观主要是字号,字体颜色,对齐等 task:20299

(cherry picked from commit e294281bef7a8e4d8960604965cad20e0be852c1)
2020-05-14 13:11:57 +08:00
zhaolong
5a4a76bd0c fix(bluetooth):bluetooth continuous to be pairing
蓝牙持续配对所有设备 task:20341

(cherry picked from commit d7c5842f96697d9dbf61b83a7e4f0e014b6ecaf2)
2020-05-14 13:11:45 +08:00
zhaolong
1633d1b23d fix(bluetooth):the Shared library could not find the variable symbol
共享库找不到extern声明的变量

(cherry picked from commit 4721ff307341860d07aa7964e028414e90ee18c0)
2020-05-14 13:10:41 +08:00
zhaolong
e6a7c4e351 fix(bluetooth):plugin multiple creation
蓝牙插件可能多次创建

(cherry picked from commit 23ab4149bf76f0d534dca9d04158286994d84d4b)
2020-05-14 13:10:31 +08:00
zhaolong
a2a5b45420 fix(bluetooth):popups displays problem
修复弹窗在蓝牙开启状态且搜索到的热点超过16个时,不显示;及蓝牙打开后再关闭弹窗高度不变

(cherry picked from commit 556e13a52cfe3e04c5247baa1f0e8d118bed1992)
2020-05-14 13:10:28 +08:00
zhaolong
e11a0be387 fix(bluetooth):Interface display adjustment
调整设备项显示高度,去掉“我的设备”标题,设备连接时状态指示图标,隐藏分割线,截取过长设备名,及设备显示规则 bug:9218

(cherry picked from commit 2abeb9ff28a9831b7c02deba04c73f337ec4c7a2)
(cherry picked from commit c3f56c565966621e49a8696d755702fdd624b07b)
2020-05-14 13:10:19 +08:00
zhaolong
66118459e0 style(bluetooth):Change the code style to conform to the code specification
调整代码书写以符合代码规范

(cherry picked from commit 05b50b174387eb5f8428a7f3d21dc41dd3c44f16)
(cherry picked from commit 56c16b455b2fa5b74d4c4d15de471f3a46bf7f79)
2020-05-14 13:10:02 +08:00
fpc_diesel
1c6a463c15 feat(bluetooth):add bluetooth plugin
添加蓝牙插件 bug:9128

(cherry picked from commit 7412d26cda31a617318842cb919242558e135a69)

(cherry picked from commit 1f62819e0fc3a97723c386b6cdf2fc68d1318827)
2020-05-14 13:09:26 +08:00