plasma-framework/src/declarativeimports
Fabian Vogt 48a8245db4 Treat Button/ToolButton labels as plaintext
Summary:
The label text gets treated as RichText/StyledText, which is required
to display mnemonics underlined. Therefore it is necessary to manually
HTML escape the label text, which unfortunately breaks mnemonics as
escaped HTML contains ampersands.
This commit fixes that by introducing a custom function to stylize
mnemonics in HTML escaped text.

Test Plan:
Ran a modified knotificationdbustest with "<h1>&&a&ction</h1>" and
"actio&n2" as actions. Result: http://i.imgur.com/xHifDBu.png

Reviewers: #plasma, broulik

Subscribers: plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D6679
2017-07-25 16:05:20 +02:00
..
accessdenied Update installation variables. 2015-01-10 17:47:31 +00:00
calendar Calendar: Use correct language for month and day names 2017-04-11 09:36:20 +02:00
core Use new connect syntax in more places 2017-07-10 22:24:50 +02:00
plasmacomponents Declare AppManager.js as pragma library 2017-07-13 14:27:59 +02:00
plasmacomponents3 default to plain text for labels 2017-07-12 16:49:37 +02:00
plasmaextracomponents Update qmltypes 2017-04-10 16:02:23 +02:00
plasmastyle Treat Button/ToolButton labels as plaintext 2017-07-25 16:05:20 +02:00
platformcomponents Update qmltypes 2017-04-10 16:02:23 +02:00
CMakeLists.txt Install Plasma Components 3 so they can be used 2017-04-27 14:59:03 +01:00