|
From: Tapio V. <aa...@us...> - 2011-01-27 09:00:57
|
Module: editor
Branch: master
Commit: 6caaae5a19a61c7a2d26f06fa00263e93ee20002
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 27 11:00:22 2011 +0200
Use PitchVis::height for SeekHandle's height.
---
notegraphwidget.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 807a8b1..46da372 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -606,8 +606,7 @@ QString NoteGraphWidget::dumpLyrics() const
SeekHandle::SeekHandle(QWidget *parent)
: QLabel(parent)
{
- // FIXME: height from notegraph
- QImage image(16, 768, QImage::Format_ARGB32_Premultiplied);
+ QImage image(16, PitchVis::height, QImage::Format_ARGB32_Premultiplied);
image.fill(qRgba(0, 0, 0, 0));
QLinearGradient gradient(0, 0, image.width()-1, 0);
gradient.setColorAt(0.00, QColor(255,255,0,0));
|