From 8e0f3b17a48255e888f6dd2f1ecad4c23a096c73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 13 Mar 2014 23:51:02 +0100 Subject: [PATCH] Do not draw debugging integration marks --- signaldrawer.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/signaldrawer.cpp b/signaldrawer.cpp index 1360909..be52023 100644 --- a/signaldrawer.cpp +++ b/signaldrawer.cpp @@ -302,19 +302,6 @@ bool SignalDrawer::renderGraph(QPixmap* const target) p.fillRect(0, 0, m_width, m_height, Qt::white); p.setPen(QColor(Qt::blue)); - /*xStep = static_cast(m_gWidth) / m_gdData->ddataLen; - yStep = static_cast(m_gHeight) / (m_relYMax - m_relYMin); - /*Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + " yStep: " + QString::number(yStep) - + " fY " + QString::number(m_relYMin) + " tY " + QString::number(m_relYMax));* - fromYPix = m_gHeight - yStep * (m_gdData->ddata[0] - m_relYMin); - for (size_t i = 1; i < m_gdData->ddataLen; i++) { - int toXPix = xStep * i + SCALE_MARGIN_VALUE; - int toYPix = m_gHeight - yStep * (m_gdData->ddata[i] - m_relYMin); - p.drawLine(fromXPix, fromYPix, toXPix, toYPix); - fromXPix = toXPix; - fromYPix = toYPix; - }*/ - fromXPix = relToXPix(m_gdData->ddata[0].first); fromYPix = relToYPix(m_gdData->ddata[0].second); for (size_t i = 1; i < m_gdData->ddataLen; i++) { @@ -388,14 +375,6 @@ QRect SignalDrawer::renderPeak(const PeakDrawData& pd, QPixmap* const target) p.setPen(Qt::red); p.drawLine(fromXPix, fromYPix, toXPix, toYPix); - /** DEBUG **/ - p.setPen(Qt::yellow); - p.drawEllipse(QPoint(relToXPix(pd.beforeFromX), relToYPix(pd.beforeFromY)), 10, 10); - p.drawEllipse(QPoint(relToXPix(pd.beforeToX), relToYPix(pd.beforeToY)), 10, 10); - p.setPen(Qt::black); - p.drawEllipse(QPoint(relToXPix(pd.fromX), relToYPix(pd.fromY)), 10, 10); - p.drawEllipse(QPoint(relToXPix(pd.toX), relToYPix(pd.toY)), 10, 10); - /* Draw AREA and TIME caption */ p.setFont(font); p.setPen(Qt::black); -- 2.43.5