ui/widgets/glxzoomwidget/src/glxzoomwidget.cpp
changeset 71 27f2d7aec52a
parent 69 45459746d5e8
equal deleted inserted replaced
69:45459746d5e8 71:27f2d7aec52a
    93 {
    93 {
    94     if(model)
    94     if(model)
    95     {
    95     {
    96         mModel = model;
    96         mModel = model;
    97         retreiveFocusedImage(); //Update mZoomItem with focused Image
    97         retreiveFocusedImage(); //Update mZoomItem with focused Image
    98         connect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) );
    98         connect( mModel, SIGNAL( fullScreenDataChanged( QModelIndex, QModelIndex ) ), this, SLOT( dataChanged( QModelIndex, QModelIndex ) ) );
    99         connect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
    99         connect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
   100     }
   100     }
   101 }
   101 }
   102 
   102 
   103 void GlxZoomWidget::setWindowSize(QSize windowSize)
   103 void GlxZoomWidget::setWindowSize(QSize windowSize)
   137 
   137 
   138 void GlxZoomWidget::cleanUp()
   138 void GlxZoomWidget::cleanUp()
   139 {
   139 {
   140     disconnect(this,SIGNAL( pinchGestureReceived(int) ), this, SLOT( sendDecodeRequest(int) ) );
   140     disconnect(this,SIGNAL( pinchGestureReceived(int) ), this, SLOT( sendDecodeRequest(int) ) );
   141     if(mModel) {
   141     if(mModel) {
   142         disconnect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) );
   142         disconnect( mModel, SIGNAL( fullScreenDataChanged( QModelIndex, QModelIndex ) ), this, SLOT( dataChanged( QModelIndex, QModelIndex ) ) );
   143         disconnect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
   143         disconnect( mModel, SIGNAL( destroyed() ), this, SLOT( modelDestroyed() ) );
   144         mModel = NULL;
   144         mModel = NULL;
   145     }
   145     }
   146     if(mImageDecoder) {
   146     if(mImageDecoder) {
   147         resetDecoder();
   147         resetDecoder();