diff src/Analyser.cpp @ 47:0909a7bda224

instrument is now "click" -- some other minor changes I don't remember
author matthiasm
date Thu, 20 Jun 2013 13:47:36 +0100
parents f4ee3c11eba9
children c30b624cb7b8
line wrap: on
line diff
--- a/src/Analyser.cpp	Thu Jun 20 11:07:57 2013 +0100
+++ b/src/Analyser.cpp	Thu Jun 20 13:47:36 2013 +0100
@@ -38,6 +38,7 @@
 
 Analyser::~Analyser()
 {
+    if (m_flexiNoteLayer) delete m_flexiNoteLayer;
 }
 
 void
@@ -84,6 +85,7 @@
     if (layer) {
 	FlexiNoteLayer *nl = qobject_cast<FlexiNoteLayer *>(layer);
 	if (nl) {
+	    m_flexiNoteLayer = nl;
 	    nl->setBaseColour(ColourDatabase::getInstance()->
 			      getColourIndex(QString("Bright Blue")));
             nl->setVerticalScale(FlexiNoteLayer::AutoAlignScale);
@@ -164,3 +166,9 @@
     return layer;
 }
 
+void
+Analyser::setIntelligentActions(bool on) 
+{
+    std::cerr << "toggle setIntelligentActions " << on << std::endl;
+    m_flexiNoteLayer->setIntelligentActions(on);
+}