|
From: Tapio V. <aa...@us...> - 2011-01-12 20:39:15
|
Module: editor
Branch: master
Commit: bbf036daec004528a51ec2139a8ee777ca208ee3
Author: Tapio Vierros <tap...@gm...>
Date: Wed Jan 12 22:37:51 2011 +0200
Only show normal, golden and freestyle notes.
---
notegraphwidget.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 42ae63f..dffe5eb 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -93,8 +93,9 @@ void NoteGraphWidget::setLyrics(const Notes ¬es)
for (Notes::const_iterator it = notes.begin(); it != notes.end(); ++it) {
// TODO: Implement proper seconds-to-pixels mapping and note height thingy
const float sec2pix = 100;
- m_notes.push_back(new NoteLabel(*it, this, QPoint(it->begin*sec2pix, 2 * noteYStep),
- QSize((it->end - it->begin)*sec2pix, 0), false));
+ if (it->type == Note::NORMAL || it->type == Note::GOLDEN || it->type == Note::FREESTYLE)
+ m_notes.push_back(new NoteLabel(*it, this, QPoint(it->begin*sec2pix, 2 * noteYStep),
+ QSize((it->end - it->begin)*sec2pix, 0), false));
}
finalizeNewLyrics();
|