422 |
422 |
423 void GlxSlideShowWidget::clearCurrentModel() |
423 void GlxSlideShowWidget::clearCurrentModel() |
424 { |
424 { |
425 TRACER ( "GlxSlideShowWidget::clearCurrentModel( ) "); |
425 TRACER ( "GlxSlideShowWidget::clearCurrentModel( ) "); |
426 if ( mModel ) { |
426 if ( mModel ) { |
427 disconnect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) ); |
427 disconnect( mModel, SIGNAL( fullScreenDataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) ); |
428 disconnect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int))); |
428 disconnect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int))); |
429 disconnect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(rowsRemoved(QModelIndex,int,int))); |
429 disconnect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(rowsRemoved(QModelIndex,int,int))); |
430 disconnect(mModel, SIGNAL(destroyed()), this, SLOT( modelDestroyed())); |
430 disconnect(mModel, SIGNAL(destroyed()), this, SLOT( modelDestroyed())); |
431 mModel = NULL ; |
431 mModel = NULL ; |
432 } |
432 } |
434 |
434 |
435 void GlxSlideShowWidget::initializeNewModel() |
435 void GlxSlideShowWidget::initializeNewModel() |
436 { |
436 { |
437 TRACER("GlxSlideShowWidget::initializeNewModel" ); |
437 TRACER("GlxSlideShowWidget::initializeNewModel" ); |
438 if ( mModel ) { |
438 if ( mModel ) { |
439 connect( mModel, SIGNAL( dataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) ); |
439 connect( mModel, SIGNAL( fullScreenDataChanged(QModelIndex,QModelIndex) ), this, SLOT( dataChanged(QModelIndex,QModelIndex) ) ); |
440 connect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int))); |
440 connect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int))); |
441 connect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(rowsRemoved(QModelIndex,int,int))); |
441 connect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(rowsRemoved(QModelIndex,int,int))); |
442 connect(mModel, SIGNAL(destroyed()), this, SLOT( modelDestroyed())); |
442 connect(mModel, SIGNAL(destroyed()), this, SLOT( modelDestroyed())); |
443 } |
443 } |
444 } |
444 } |