[Kst] branches/work/kst/portto4/kst/src/libkstapp

Mike Fenton mike at staikos.net
Mon Oct 15 22:54:11 CEST 2007


SVN commit 725625 by fenton:

Disable attempt to write PlotRenderItems when saving the main view.
Basic save of LayoutBox.


 M  +7 -0      layoutboxitem.cpp  
 M  +1 -0      layoutboxitem.h  
 M  +5 -0      plotrenderitem.cpp  
 M  +1 -0      plotrenderitem.h  


--- branches/work/kst/portto4/kst/src/libkstapp/layoutboxitem.cpp #725624:725625
@@ -52,6 +52,13 @@
 }
 
 
+void LayoutBoxItem::save(QXmlStreamWriter &xml) {
+  xml.writeStartElement("layoutbox");
+  ViewItem::save(xml);
+  xml.writeEndElement();
+}
+
+
 void LayoutBoxItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
   Q_UNUSED(option);
   Q_UNUSED(widget);
--- branches/work/kst/portto4/kst/src/libkstapp/layoutboxitem.h #725624:725625
@@ -25,6 +25,7 @@
 
     void appendItem(ViewItem *item);
 
+    virtual void save(QXmlStreamWriter &xml);
     virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
 
   public Q_SLOTS:
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #725624:725625
@@ -197,6 +197,11 @@
 }
 
 
+void PlotRenderItem::save(QXmlStreamWriter &xml) {
+    Q_UNUSED(xml);
+}
+
+
 void PlotRenderItem::paint(QPainter *painter) {
   painter->setRenderHint(QPainter::Antialiasing, false);
   painter->drawRect(rect());
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.h #725624:725625
@@ -82,6 +82,7 @@
     void removeRelation(RelationPtr relation);
     void clearRelations();
 
+    virtual void save(QXmlStreamWriter &xml);
     virtual void paint(QPainter *painter);
     virtual void paintRelations(QPainter *painter) = 0;
 


More information about the Kst mailing list