|
From: Tapio V. <aa...@us...> - 2011-02-01 07:50:53
|
Module: editor
Branch: master
Commit: 0b5a6a4676b15febd00e11cb7f16d60dd9cd7255
Author: Tapio Vierros <tap...@gm...>
Date: Tue Feb 1 09:49:41 2011 +0200
Use a proper value for pitch visualization drawing width.
---
notegraphwidget.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index b0ed152..dcdf47f 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -155,7 +155,7 @@ void NoteGraphWidget::paintEvent(QPaintEvent*) {
scrollArea = qobject_cast<QScrollArea*>(parentWidget()->parent());
if (scrollArea && scrollArea->horizontalScrollBar()) {
x1 = scrollArea->horizontalScrollBar()->value();
- x2 = x1 + 2000; // FIXME: Need to figure out the real viewport width from somewhere
+ x2 = x1 + scrollArea->width();
}
if (m_pitch) m_pitch->paint(this, x1, x2);
}
|