|
From: Lasse Kärkkäi. <tr...@us...> - 2011-01-10 14:51:28
|
Module: editor
Branch: master
Commit: e0e7979a7000ff2a0d9aa40c17774c001f78c7dc
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Jan 10 15:41:33 2011 +0100
Use pitchvis in notegraphwidget
---
notegraphwidget.cc | 2 +-
notegraphwidget.hh | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 4b75b4d..f5f71b1 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -9,7 +9,7 @@
const int NoteGraphWidget::noteYStep = 40;
NoteGraphWidget::NoteGraphWidget(QWidget *parent)
- : QWidget(parent), m_panHotSpot(), m_selectedNote(), m_selectedAction(NONE)
+ : QWidget(parent), m_panHotSpot(), m_selectedNote(), m_selectedAction(NONE), m_pitch("music.raw")
{
setFocusPolicy(Qt::StrongFocus);
setLyrics("Please add music file and lyrics text.");
diff --git a/notegraphwidget.hh b/notegraphwidget.hh
index a0c867e..d15d84f 100644
--- a/notegraphwidget.hh
+++ b/notegraphwidget.hh
@@ -1,5 +1,6 @@
#pragma once
+#include "pitchvis.hh"
#include <QWidget>
#include <list>
@@ -41,6 +42,7 @@ private:
NoteLabel* m_selectedNote;
enum NoteAction { NONE, RESIZE, MOVE } m_selectedAction;
NoteLabels m_notes;
+ PitchVis m_pitch;
};
|