[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kchart/kdchart
From:       Laurent Montel <montel () kde ! org>
Date:       2006-03-29 15:13:32
Message-ID: 1143645212.575726.4590.nullmailer () svn ! kde ! org
[Download RAW message or body]

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 <QPixmap>
 #include <zlib.h>
-
+#include <QImageWriter>
 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
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic