diff src/historywidget.cpp @ 619:4f7ca2d192df

Merge
author Chris Cannam
date Tue, 03 Jul 2012 20:10:04 +0100
parents 6f90bb52eee6
children f635e227775c
line wrap: on
line diff
--- a/src/historywidget.cpp	Tue Jul 03 20:09:46 2012 +0100
+++ b/src/historywidget.cpp	Tue Jul 03 20:10:04 2012 +0100
@@ -205,6 +205,13 @@
     }
 }
 
+void HistoryWidget::clear()
+{
+    QGraphicsScene *oldScene = m_panned->scene();
+    m_panned->setScene(0);
+    delete oldScene;
+}
+
 void HistoryWidget::layoutAll()
 {
     m_refreshNeeded = false;