]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/SimpleMPRWidget.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / SimpleMPRWidget.cxx
index 543ae154ecd98b7d5e1c5b82d526f342ef70e745..9b47dfddbb020ab1cc3aed6fca956c77f505179f 100644 (file)
@@ -1,7 +1,4 @@
 #include <cpExtensions/QT/SimpleMPRWidget.h>
-
-#ifdef cpExtensions_QT4
-
 #include <cpExtensions/QT/ui_SimpleMPRWidget.h>
 #include <cpExtensions/QT/ImageWidget.h>
 #include <cpExtensions/QT/MPR3DWidget.h>
@@ -164,9 +161,9 @@ SetImage( vtkImageData* image, const std::string& name )
 
   if( this->m_MainImage != NULL && this->m_MainImageName != "" )
   {
-    this->m_XImage->SetImage( this->m_MainImage, 0, name );
-    this->m_YImage->SetImage( this->m_MainImage, 1, name );
-    this->m_ZImage->SetImage( this->m_MainImage, 2, name );
+    this->m_XImage->SetImage( this->m_MainImage, name, 0 );
+    this->m_YImage->SetImage( this->m_MainImage, name, 1 );
+    this->m_ZImage->SetImage( this->m_MainImage, name, 2 );
     this->m_3DView->SetImage( this->m_MainImage, name );
 
   } // fi
@@ -635,6 +632,4 @@ _SyncTop( int a, int b )
   this->m_UI->Top->setSizes( this->m_UI->Bottom->sizes( ) );
 }
 
-#endif // cpExtensions_QT4
-
 // eof - $RCSfile$