[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Thu Aug 18 21:26:51 CEST 2005


SVN commit 450676 by rchern:

Fix loading of labels with autoResize enabled

 M  +8 -1      kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #450675:450676
@@ -89,16 +89,23 @@
   reparse();
   
   // read the properties
+  bool in_autoResize = false;
   QDomNode n = e.firstChild();
   while (!n.isNull()) {
     QDomElement el = n.toElement(); 
     if (!el.isNull()) {
       if (metaObject()->findProperty(el.tagName().latin1(), true) > -1) {
-        setProperty(el.tagName().latin1(), QVariant(el.text()));  
+        if (el.tagName() == "autoResize") {
+          in_autoResize = QVariant(el.text()).toBool();
+        } else {
+          setProperty(el.tagName().latin1(), QVariant(el.text()));  
+        }
       }  
     }
     n = n.nextSibling();      
   }
+  
+  _autoResize = in_autoResize;
 }
 
 


More information about the Kst mailing list