[Kst] [Bug 124367] copying plots in layout mode leads to chaos

George Staikos staikos at kde.org
Tue Mar 28 00:44:51 CEST 2006


> CCBUG:124367 Allow legends to be copied with a plot.
>
>  M  +19 -0     kstviewarrow.cpp
>  M  +2 -0      kstviewarrow.h
>  M  +21 -0     kstviewbox.cpp
>  M  +2 -0      kstviewbox.h
>  M  +15 -0     kstviewellipse.cpp
>  M  +2 -0      kstviewellipse.h
>  M  +31 -2     kstviewlabel.cpp
>  M  +2 -0      kstviewlabel.h
>  M  +31 -0     kstviewlegend.cpp
>  M  +2 -0      kstviewlegend.h
>  M  +19 -1     kstviewline.cpp
>  M  +2 -0      kstviewline.h
>  M  +1 -0      kstviewobject.cpp
>  M  +18 -0     kstviewpicture.cpp
>  M  +2 -0      kstviewpicture.h

  Why is this doing the following?

--- libkstapp/kstviewline.cpp   (revision 523336)
+++ libkstapp/kstviewline.cpp   (revision 523337)
@@ -74,16 +74,34 @@
   }

   // always these values
-  setTransparent(true);
   _type = "Line";
   setMinimumSize(QSize(1, 1));
 }

--- libkstapp/kstviewlabel.cpp  (revision 523336)
+++ libkstapp/kstviewlabel.cpp  (revision 523337)
@@ -70,7 +70,6 @@
   _fontName = KstApp::inst()->defaultFont();
   _fontSize = 0;
   _absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
-  _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
   _parsed = 0L;
   _labelMargin = 0;
@@ -97,7 +96,6 @@
   _fontName = KstApp::inst()->defaultFont();
   _fontSize = 0;
   _absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
-  _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
   _parsed = 0L;
   reparse();




-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list