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

Barth Netterfield netterfield at astro.utoronto.ca
Sat Dec 25 02:29:53 CET 2010


SVN commit 1209140 by netterfield:

BUG:
Allow shared axis in re-loaded .kst files to be broken.


 M  +3 -0      sharedaxisboxitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/sharedaxisboxitem.cpp #1209139:1209140
@@ -1281,6 +1281,9 @@
           if (PlotItem *plotItem = qobject_cast<PlotItem*>(i)) {
             plotItem->setSharedAxisBox(rc);
             rc->_sharedPlots << plotItem;
+            rc->connect(plotItem, SIGNAL(breakShareTriggered()), rc, SLOT(breakShare()));
+            rc->connect(plotItem, SIGNAL(shareXAxisTriggered()), rc, SLOT(shareXAxis()));
+            rc->connect(plotItem, SIGNAL(shareYAxisTriggered()), rc, SLOT(shareYAxis()));
           }
         }
       }


More information about the Kst mailing list