Selaa lähdekoodia

Change to new thumbnail api

Remove out of date call.
Steve Pieper 14 vuotta sitten
vanhempi
commit
964c30d1b2
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      Libs/DICOM/Widgets/ctkDICOMAppWidget.cpp

+ 5 - 2
Libs/DICOM/Widgets/ctkDICOMAppWidget.cpp

@@ -165,8 +165,6 @@ void ctkDICOMAppWidget::onDICOMModelSelected(const QModelIndex& index)
 {
 {
   Q_D(ctkDICOMAppWidget);
   Q_D(ctkDICOMAppWidget);
 
 
-  //TODO: update thumbnails and previewer
-  d->thumbnailsWidget->setModelIndex(index);
 
 
   // TODO: this could check the type of the model entries
   // TODO: this could check the type of the model entries
   QString thumbnailPath = d->DICOMDatabase->databaseDirectory();
   QString thumbnailPath = d->DICOMDatabase->databaseDirectory();
@@ -182,11 +180,16 @@ void ctkDICOMAppWidget::onDICOMModelSelected(const QModelIndex& index)
   {
   {
     d->imagePreview->setText("No preview");
     d->imagePreview->setText("No preview");
   }
   }
+
+  // update thumbnails 
+  QStringList files = QStringList(thumbnailPath);
+  d->thumbnailsWidget->setThumbnailFiles(files);
 }
 }
 
 
 void ctkDICOMAppWidget::onThumbnailSelected(const ctkDICOMThumbnailWidget& widget){
 void ctkDICOMAppWidget::onThumbnailSelected(const ctkDICOMThumbnailWidget& widget){
   //TODO: update previewer
   //TODO: update previewer
 }
 }
+
 void ctkDICOMAppWidget::onImportDirectory(QString directory)
 void ctkDICOMAppWidget::onImportDirectory(QString directory)
 {
 {
   Q_D(ctkDICOMAppWidget);
   Q_D(ctkDICOMAppWidget);