[Kst] extragear/graphics/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Thu Dec 8 08:24:41 CET 2005


SVN commit 486627 by netterfield:

Legends shouldn't follow flow, but maybe labels (at least as label boxes) and boxes should.
Lets play some and see what we think.



 M  +3 -0      kstviewbox.cpp  
 M  +2 -0      kstviewlabel.cpp  
 M  +1 -2      kstviewlegend.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewbox.cpp #486626:486627
@@ -36,6 +36,7 @@
   _cornerStyle = Qt::MiterJoin;
   setTransparent(true);
   _transparentFill = false;
+  setFollowsFlow(true);
 }
 
 
@@ -57,6 +58,8 @@
   _type = "Box";
   _layoutActions |= Delete | Raise | Lower | RaiseToTop | LowerToBottom | Rename | MoveTo | Copy | CopyTo;
   setTransparent(true);
+  setFollowsFlow(true);
+
 }
 
 
--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #486626:486627
@@ -56,6 +56,7 @@
 KstViewLabel::KstViewLabel(const QString& txt, KstLJustifyType justify, float rotation)
 : KstBorderedViewObject("Label") {
   _container = false;
+  setFollowsFlow(true);
   _dataPrecision = 8;
   _autoResize = false; // avoid madness
   _txt = txt;
@@ -80,6 +81,7 @@
 : KstBorderedViewObject(e) {
   // some defaults and invariants
   _container = false;
+  setFollowsFlow(true);
   _type = "Label";
   _dataPrecision = 8;
   _autoResize = false; // avoid madness
--- trunk/extragear/graphics/kst/kst/kstviewlegend.cpp #486626:486627
@@ -64,7 +64,6 @@
   _absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
   _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
-  setFollowsFlow(true);
   computeTextSize();
   setDirty(false);
 }
@@ -84,7 +83,7 @@
   _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
   QStringList ctaglist;
-  setFollowsFlow(true);
+
   // read the properties
   QDomNode n = e.firstChild();
   while (!n.isNull()) {


More information about the Kst mailing list