diff panner.cpp @ 133:aaeab914f2a3

* Better attempt at retaining current visible area when history scene changes; first cut at highlighting new items
author Chris Cannam
date Tue, 30 Nov 2010 12:45:34 +0000
parents 16ceeee30e2a
children d66fcf2e0342
line wrap: on
line diff
--- a/panner.cpp	Tue Nov 30 11:41:46 2010 +0000
+++ b/panner.cpp	Tue Nov 30 12:45:34 2010 +0000
@@ -66,7 +66,7 @@
 Panner::setScene(QGraphicsScene *s)
 {
     if (scene()) {
-        disconnect(scene(), SIGNAL(sceneChanged(const QList<QRectF> &)),
+        disconnect(scene(), SIGNAL(changed(const QList<QRectF> &)),
                    this, SLOT(slotSceneChanged(const QList<QRectF> &)));
         disconnect(scene(), SIGNAL(sceneRectChanged(const QRectF &)),
                    this, SLOT(slotSceneRectChanged(const QRectF &)));
@@ -78,7 +78,7 @@
         fit(r);
     }
     m_cache = QPixmap();
-    connect(scene(), SIGNAL(sceneChanged(const QList<QRectF> &)),
+    connect(scene(), SIGNAL(changed(const QList<QRectF> &)),
             this, SLOT(slotSceneChanged(const QList<QRectF> &)));
     connect(scene(), SIGNAL(sceneRectChanged(const QRectF &)),
             this, SLOT(slotSceneRectChanged(const QRectF &)));