SVN commit 524031 by mlaurent: Now all compiles. Ok it will replace in the future but new kdchart-qt4 but for the moment fix for linking kchart/kspread M +5 -2 KDXMLTools.cpp --- trunk/koffice/kchart/kdchart/KDXMLTools.cpp #524030:524031 @@ -32,7 +32,7 @@ //Added by qt3to4: #include #include - +#include namespace KDXML { void createBoolNode( QDomDocument& doc, QDomNode& parent, @@ -147,13 +147,15 @@ // we store an empty image without any data createIntNode( doc, pixmapElement, "Length", 0 ); }else{ +#warning "kde4 port" +#if 0 // Convert the pixmap to an image, save that image to an in-memory // XPM representation and compress this representation. This // conforms to the file format Qt Designer uses. QByteArray ba; QBuffer buffer( &ba ); buffer.open( QIODevice::WriteOnly ); - QImageIO imgio( &buffer, "XPM" ); + QImageWriter imgio( &buffer, "XPM" ); QImage image = pixmap.convertToImage(); imgio.setImage( image ); imgio.write(); @@ -170,6 +172,7 @@ } createIntNode( doc, pixmapElement, "Length", ba.size() ); createStringNode( doc, pixmapElement, "Data", dataString ); +#endif } }