From 781bb041ed3e742d434f5e0f6fd1ae1df2de06e2 Mon Sep 17 00:00:00 2001
From: Oliver Bock <oliver.bock@aei.mpg.de>
Date: Fri, 13 Feb 2009 15:19:27 +0100
Subject: [PATCH] Make sure pulse fits in view after update

* Shouldn't be required but makes a difference on Qt 4.5
* BTW, Qt 4.5 solves the "flipped pulse profile" issue: http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=239047
---
 src/pulsescopewidget.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pulsescopewidget.cpp b/src/pulsescopewidget.cpp
index c504b7a..8ce1657 100644
--- a/src/pulsescopewidget.cpp
+++ b/src/pulsescopewidget.cpp
@@ -88,6 +88,8 @@ void PulseScopeWidget::drawCurve(const QVector<double>& vector)
 	else {
 		m_path->setPath(pulsePath);
 	}
+
+	fitInView(m_scene.itemsBoundingRect(), Qt::IgnoreAspectRatio);
 }
 
 void PulseScopeWidget::setMarker(double position) {
-- 
GitLab