ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #06616
[Bug 1587580] [NEW] No way to escape an ampersand in UCAction
Public bug reported:
Let's say we have an Ubuntu.Action as follow:
import Ubuntu.Components 1.3 as Ubuntu
Ubuntu.Action {
text: "Apps & Scopes"
}
UCAction translates the ampersand as a mnemonic, using QKeySequence.
A way to escape a mnemonic in Qt is to add another ampersand. The resulting string is "Apps && Scopes".
The UITK component seems not to take in account this situation, since:
- How the string should be shown in e.g. an ActionBar:
"Apps & Scopes"
- How the string is displayed instead in an ActionBar:
"Apps && Scopes"
QKeySequence returns no mnemonic as expected, but UCAction shows two
ampersands.
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1587580
Title:
No way to escape an ampersand in UCAction
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
Let's say we have an Ubuntu.Action as follow:
import Ubuntu.Components 1.3 as Ubuntu
Ubuntu.Action {
text: "Apps & Scopes"
}
UCAction translates the ampersand as a mnemonic, using QKeySequence.
A way to escape a mnemonic in Qt is to add another ampersand. The resulting string is "Apps && Scopes".
The UITK component seems not to take in account this situation, since:
- How the string should be shown in e.g. an ActionBar:
"Apps & Scopes"
- How the string is displayed instead in an ActionBar:
"Apps && Scopes"
QKeySequence returns no mnemonic as expected, but UCAction shows two
ampersands.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1587580/+subscriptions
Follow ups