From: Shane Synan Date: Sat, 16 Jun 2018 17:10:00 +0000 (-0500) Subject: client: Clean up chatviewsettingspage.ui X-Git-Tag: travis-deploy-test~13 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=7f435a66db71c42291825ea7d22ec052e38f1245;p=quassel.git client: Clean up chatviewsettingspage.ui Clean up the HTML spew from the Rich Text editor for senderPrefixComboBox, using handcrafted Qt markup to simplify it for translators. (Hopefully.) CAUTION: Editing the tooltip in Qt's Rich Text editor will convert it back to HTML. Use the Source view of the editor. Use instead of for custom enumeration values. This stops Qt Creator from converting it to "false" when loading the file. --- diff --git a/src/qtui/settingspages/chatviewsettingspage.ui b/src/qtui/settingspages/chatviewsettingspage.ui index f0f14039..a4ab67ec 100644 --- a/src/qtui/settingspages/chatviewsettingspage.ui +++ b/src/qtui/settingspages/chatviewsettingspage.ui @@ -104,18 +104,15 @@ - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style="font-weight:400; font-style:normal;"> -<p><span style="font-weight:600;">Sender modes:</span></p> -<p><span style="text-decoration: underline;">No modes:</span> Don't show any modes<br/><span style="font-style: italic;">Example:</span> &lt;nickname&gt;</p> -<p><span style="text-decoration: underline;">Highest mode:</span> Show only the highest active mode<br/><span style="font-style: italic;">Example:</span> &lt;@nickname&gt;</p> -<p><span style="text-decoration: underline;">All modes:</span> Show all active modes<br/><span style="font-style: italic;">Example:</span> &lt;@+nickname&gt;</p> -</body></html> + <qt><style>.bold { font-weight: bold; } .italic { font-style: italic; } .underline { text-decoration: underline; }</style> +<p><span class="bold">Sender modes:</span></p> +<p><span class="underline">No modes:</span> Don't show any modes<br/><span class="italic">Example:</span> &lt;nickname&gt;</p> +<p><span class="underline">Highest mode:</span> Show only the highest active mode<br/><span class="italic">Example:</span> &lt;@nickname&gt;</p> +<p><span class="underline">All modes:</span> Show all active modes<br/><span class="italic">Example:</span> &lt;@+nickname&gt;</p> +</qt> - 1 + 1 SenderPrefixMode