Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

含"&"的无线网络SSID显示问题 #880

Closed
CJ6922G1CH opened this issue Feb 11, 2019 · 4 comments
Closed

含"&"的无线网络SSID显示问题 #880

CJ6922G1CH opened this issue Feb 11, 2019 · 4 comments
Assignees

Comments

@CJ6922G1CH
Copy link

CJ6922G1CH commented Feb 11, 2019

缺陷描述

Dock栏中的无线网络列表无法正确显示含"&"的SSID,会给"&"后的字母加一个下划线。控制中心中的无线列表则正常。

复现步骤

扫描一个带"&"的SSID即复现。

截图

1
2

复现环境:

发行版以及版本

各个版本中均存在,包括15.9

@listenerri
Copy link

listenerri commented Feb 13, 2019

QPushButton 会将 &符号看作是设置快捷键的标识, 有两个方案:

  1. & 替换为 &&, 这样按钮控件就会显示出来文本 &
  2. 不再使用按钮控件, 而是自己画出来目前的样式 (控制中心就是自绘的)

@listenerri
Copy link

https://cr.deepin.io/c/dde/dde-dock/+/41597

用 QLabel 替换了 QPushButton, 应该算是方案3 :)

@liuwen123
Copy link

+1

deepin-gerrit pushed a commit to linuxdeepin/dde-dock that referenced this issue Feb 14, 2019
@liuwen123
Copy link

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants