[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [labplot/histogram_chart] src: auto call to retransform function- setHistogramData
From:       Anu Mittal <anu22mittal () gmail ! com>
Date:       2016-08-15 17:01:17
Message-ID: E1bZLGH-0004ua-7J () code ! kde ! org
[Download RAW message or body]

Git commit 71c84a7cbf4761a6f523dcfb64b4f480e295b0e2 by Anu Mittal.
Committed on 15/08/2016 at 17:00.
Pushed by anumittal into branch 'histogram_chart'.

auto call to retransform function- setHistogramData

M  +1    -3    src/backend/worksheet/plots/cartesian/Histogram.cpp
M  +3    -3    src/kdefrontend/dockwidgets/HistogramDock.cpp

http://commits.kde.org/labplot/71c84a7cbf4761a6f523dcfb64b4f480e295b0e2

diff --git a/src/backend/worksheet/plots/cartesian/Histogram.cpp \
b/src/backend/worksheet/plots/cartesian/Histogram.cpp index 3c913fa..3392484 100644
--- a/src/backend/worksheet/plots/cartesian/Histogram.cpp
+++ b/src/backend/worksheet/plots/cartesian/Histogram.cpp
@@ -167,7 +167,6 @@ void Histogram::setPrinting(bool on) {
 void Histogram::setHistrogramType(Histogram::HistogramType histogramType) {
 	d_ptr->histogramType = histogramType;
 	qDebug() << histogramType;
-	d_ptr->retransform();
 }
 
 Histogram::HistogramType Histogram::getHistrogramType() {
@@ -230,7 +229,7 @@ void Histogram::setHistogramData(const Histogram::HistogramData& \
histogramData)  Q_D(Histogram);
 	if ((histogramData.binValue != d->histogramData.binValue)
 		|| (histogramData.binsOption != d->histogramData.binsOption) );
-		//exec(new HistogramSetDataCmd(d, histogramData, i18n("%1: set equation")));
+		exec(new HistogramSetHistogramDataCmd(d, histogramData, i18n("%1: set \
equation")));  }
 
 STD_SETTER_CMD_IMPL_F_S(Histogram, SetXColumn, const AbstractColumn*, xColumn, \
retransform) @@ -619,7 +618,6 @@ void HistogramPrivate::updateLines(){
 	}
 
 	double width = (xAxisMax-xAxisMin)/bins;
-
 	histogram = gsl_histogram_alloc (bins); // demo- number of bins
 	gsl_histogram_set_ranges_uniform (histogram, xAxisMin,xAxisMax+1);
 
diff --git a/src/kdefrontend/dockwidgets/HistogramDock.cpp \
b/src/kdefrontend/dockwidgets/HistogramDock.cpp index 268883a..b6ae1ae 100644
--- a/src/kdefrontend/dockwidgets/HistogramDock.cpp
+++ b/src/kdefrontend/dockwidgets/HistogramDock.cpp
@@ -439,10 +439,10 @@ void HistogramDock::recalculateClicked() {
 	}
 	data.binsOption= (Histogram::BinsOption)uiGeneralTab.cbBins->currentIndex();
 	data.binValue = uiGeneralTab.sbBins->value();
-	m_curve->retransform();
-	/*foreach(Histogram* curve, m_curvesList)
+// 	m_curve->retransform();
+	foreach(Histogram* curve, m_curvesList)
 		dynamic_cast<Histogram*>(curve)->setHistogramData(data);
-*/
+
 	uiGeneralTab.pbRecalculate->setEnabled(false);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic