xml.cpp
changeset 407 5db8dfd30ea2
parent 406 1c8ff1928b97
child 408 c2a05fa925a1
     1.1 --- a/xml.cpp	Thu Nov 23 13:53:08 2006 +0000
     1.2 +++ b/xml.cpp	Thu Nov 23 16:18:26 2006 +0000
     1.3 @@ -1,8 +1,8 @@
     1.4  #include "xml.h"
     1.5  
     1.6 -#include <qmessagebox.h>
     1.7 -#include <qcolor.h>
     1.8 -#include <q3stylesheet.h>
     1.9 +#include <QMessageBox>
    1.10 +#include <QColor>
    1.11 +// #include <q3stylesheet.h>
    1.12  #include <QTextStream>
    1.13  #include <iostream>
    1.14  
    1.15 @@ -527,6 +527,8 @@
    1.16  			lines += stream.readLine()+"\n"; 
    1.17  		}
    1.18  		file.close();
    1.19 +
    1.20 +		/* TODO very likely not needed any longer
    1.21  		// Convert to richtext
    1.22  		if ( !Q3StyleSheet::mightBeRichText( lines ) )
    1.23  		{
    1.24 @@ -535,9 +537,11 @@
    1.25  			// for the parser, but just <p> and <br> without closing tags.
    1.26  			// So we have to add those by ourselves
    1.27  			//lines=quotemeta (lines);
    1.28 +			qWarning ("xml.cpp: Still using Q3StyleSheet::mightBeRichText");
    1.29  			lines = Q3StyleSheet::convertFromPlainText( lines, Q3StyleSheetItem::WhiteSpaceNormal );
    1.30  			lines.replace ("<br>","<br />");
    1.31  		}	
    1.32 +		*/
    1.33  
    1.34  		lines ="<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body>"+lines + "</p></body></html>";
    1.35  		no.setNote (lines);