diff layer/TimeValueLayer.cpp @ 427:1304dbe4542e

* Support importing features from RDF whose times are intervals rather than only instants; import them into region or note models. Sadly this makes RDF import much, much slower, because we need to work around Rasqal's single-OPTIONAL limitation by repeatedly querying each feature for time and range. * Add segmentation view to region layer, and display label texts
author Chris Cannam
date Tue, 07 Oct 2008 12:42:17 +0000
parents e1a9e478b7f2
children bcaeb2ba9b74
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Tue Sep 30 10:33:28 2008 +0000
+++ b/layer/TimeValueLayer.cpp	Tue Oct 07 12:42:17 2008 +0000
@@ -611,7 +611,6 @@
 
 	bool haveNext = false;
 	int nx = v->getXForFrame(v->getModelsEndFrame());
-// m_model->getEndFrame());
 	int ny = y;
 
 	SparseTimeValueModel::PointList::const_iterator j = i;
@@ -627,15 +626,12 @@
 //        std::cout << "frame = " << p.frame << ", x = " << x << ", haveNext = " << haveNext 
 //                  << ", nx = " << nx << std::endl;
 
-	int labelY = y;
-
 	if (w < 1) w = 1;
 	paint.setPen(getBaseQColor());
 
 	if (m_plotStyle == PlotSegmentation) {
             paint.setPen(getForegroundQColor(v));
             paint.setBrush(getColourForValue(v, p.value));
-	    labelY = v->height();
 	} else if (m_plotStyle == PlotLines ||
 		   m_plotStyle == PlotCurve) {
 	    paint.setBrush(Qt::NoBrush);