From 7f435a66db71c42291825ea7d22ec052e38f1245 Mon Sep 17 00:00:00 2001 From: Shane Synan Date: Sat, 16 Jun 2018 12:10:00 -0500 Subject: [PATCH] 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. --- src/qtui/settingspages/chatviewsettingspage.ui | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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 -- 2.20.1