diff mainwindow.cpp @ 196:dbc8d97caaf4

* Avoid showing hard hyphen on Windows (I had thought this was in previous commit)
author Chris Cannam
date Fri, 24 Dec 2010 13:16:12 +0000
parents ff0d76dcb3b8
children 2afac743acdf
line wrap: on
line diff
--- a/mainwindow.cpp	Fri Dec 24 13:14:45 2010 +0000
+++ b/mainwindow.cpp	Fri Dec 24 13:16:12 2010 +0000
@@ -1285,7 +1285,12 @@
 
 QString MainWindow::format3(QString head, QString intro, QString code)
 {
-    code = xmlEncode(code).replace("\n", "<br>").replace("-", "&#8209;").replace(" ", "&nbsp;");
+    code = xmlEncode(code).replace("\n", "<br>")
+#ifndef Q_OS_WIN32
+           // The hard hyphen comes out funny on Windows
+           .replace("-", "&#8209;")
+#endif
+           .replace(" ", "&nbsp;");
     if (intro == "") {
         return QString("<qt><h3>%1</h3><p><code>%2</code></p>")
             .arg(head).arg(code);
@@ -1622,7 +1627,8 @@
         break;
         
     case ACT_MERGE:
-        QMessageBox::information(this, tr("Update"), tr("<qt><h3>Merge successful</h3><p>%1</p>").arg(xmlEncode(output)));
+        //!!! use format3?
+        QMessageBox::information(this, tr("Merge"), tr("<qt><h3>Merge successful</h3><pre>%1</pre>").arg(xmlEncode(output)));
         shouldHgStat = true;
         justMerged = true;
         break;