--- a/ui/widgets/glxzoomwidget/src/glxzoomwidget.cpp Fri Jun 11 17:53:15 2010 +0530
+++ b/ui/widgets/glxzoomwidget/src/glxzoomwidget.cpp Fri Jun 25 15:41:33 2010 +0530
@@ -74,6 +74,7 @@
mModel = model;
retreiveFocusedImage(); //Update mZoomItem with focused Image
connect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) );
+ connect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
}
}
@@ -99,6 +100,7 @@
{
if(mModel) {
disconnect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) );
+ disconnect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
mModel = NULL;
}
if(mImageDecoder) {
@@ -385,6 +387,16 @@
}
}
+void GlxZoomWidget::modelDestroyed()
+{
+ mModel = NULL ;
+}
+
+void GlxZoomWidget::indexChanged()
+ {
+ retreiveFocusedImage();
+ }
+
void GlxZoomWidget::decodedImageAvailable()
{
//new bitmap with better resolution is available