diff view/Overview.cpp @ 222:cd81066ac7ad

* More useful status bar text -- show the current play time and the extents of the visible area * Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake to do the right thing now that the project file has been split up into several project files * Fix missing Q_OBJECTs, etc, reported by lupdate * Update Russian translation from AlexandrE
author Chris Cannam
date Wed, 07 Mar 2007 17:07:02 +0000
parents 8520b7918104
children 28c8e8e3c537
line wrap: on
line diff
--- a/view/Overview.cpp	Mon Mar 05 15:32:55 2007 +0000
+++ b/view/Overview.cpp	Wed Mar 07 17:07:02 2007 +0000
@@ -76,10 +76,9 @@
 }    
 
 void
-Overview::viewManagerZoomLevelChanged(void *p, unsigned long z, bool)
+Overview::viewZoomLevelChanged(View *v, unsigned long z, bool)
 {
-    if (p == this) return;
-    View *v = (View *)p;
+    if (v == this) return;
     if (m_views.find(v) != m_views.end()) {
 	update();
     }
@@ -111,7 +110,7 @@
 					   ZoomConstraint::RoundUp);
     if (zoomLevel != m_zoomLevel) {
 	m_zoomLevel = zoomLevel;
-	emit zoomLevelChanged(this, m_zoomLevel, m_followZoom);
+	emit zoomLevelChanged(m_zoomLevel, m_followZoom);
     }
     size_t centreFrame = startFrame + m_zoomLevel * (width() / 2);
     if (centreFrame > (startFrame + getModelsEndFrame())/2) {