1.1 --- a/xml.cpp Thu Dec 14 17:01:44 2006 +0000
1.2 +++ b/xml.cpp Fri Dec 29 13:52:17 2006 +0000
1.3 @@ -2,7 +2,6 @@
1.4
1.5 #include <QMessageBox>
1.6 #include <QColor>
1.7 -// #include <q3stylesheet.h>
1.8 #include <QTextStream>
1.9 #include <iostream>
1.10
1.11 @@ -528,21 +527,6 @@
1.12 }
1.13 file.close();
1.14
1.15 - /* TODO very likely not needed any longer
1.16 - // Convert to richtext
1.17 - if ( !Q3StyleSheet::mightBeRichText( lines ) )
1.18 - {
1.19 - // Here we are workarounding the QT conversion method:
1.20 - // convertFromPlainText does not generate valid xml, needed
1.21 - // for the parser, but just <p> and <br> without closing tags.
1.22 - // So we have to add those by ourselves
1.23 - //lines=quotemeta (lines);
1.24 - qWarning ("xml.cpp: Still using Q3StyleSheet::mightBeRichText");
1.25 - lines = Q3StyleSheet::convertFromPlainText( lines, Q3StyleSheetItem::WhiteSpaceNormal );
1.26 - lines.replace ("<br>","<br />");
1.27 - }
1.28 - */
1.29 -
1.30 lines ="<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body>"+lines + "</p></body></html>";
1.31 no.setNote (lines);
1.32 }