|
From: Tapio V. <aa...@us...> - 2011-01-27 13:18:39
|
Module: editor
Branch: master
Commit: 65084c3b531e6a153ab4d9dfa861fd1199a7ff50
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 27 15:17:38 2011 +0200
Initially NoteGraph contents are now vertically centered.
---
editorapp.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/editorapp.cc b/editorapp.cc
index 1a30b21..3d7f839 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -51,6 +51,8 @@ EditorApp::EditorApp(QWidget *parent): QMainWindow(parent), projectFileName(), h
noteGraph->doOperation(Operation("BLOCK")); // Lock the undo stack
noteGraph->updateNotes();
updateNoteInfo(NULL);
+ // Scroll to middle to show the initial lyrics
+ ui.noteGraphScroller->ensureVisible(0, noteGraph->height()/2, 0, ui.noteGraphScroller->height()/2);
song.reset(new Song);
|