|
From: Tapio V. <aa...@us...> - 2011-01-12 13:35:12
|
Module: editor
Branch: master
Commit: 98dbded63b6879cfbca374f610053ac2f372ac7d
Author: Tapio Vierros <tap...@gm...>
Date: Wed Jan 12 14:38:07 2011 +0200
Hack the initial dummy lyrics visible.
---
notegraphwidget.cc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 8ddd97e..0cec21b 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -27,6 +27,13 @@ NoteGraphWidget::NoteGraphWidget(QWidget *parent)
setFocusPolicy(Qt::StrongFocus);
setWhatsThis(tr("Note graph that displays the song notes and allows you to manipulate them."));
setLyrics(tr("Please add music file and lyrics text."));
+
+ // We want the initial text to be completely visible on screen
+ // FIXME: This should be handled with more robustness and elegance
+ m_notes.back()->move(600, m_notes.back()->y());
+ updateNotes();
+
+ // Signal the UI to update itself
emit updateNoteInfo(NULL);
}
|