Salome HOME
Observe Image operation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.cxx
index 9e3e173bfa54c83799ebb6629346d50f6e76beef..47c7f13a3166ecd2d4e425c0c3c4e3ba57a9784b 100644 (file)
@@ -193,11 +193,10 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
   aMappingLayout->setColumnStretch( 7, 2 ); // seconds (double with 4 digits)
 
   // Common
-  addWidget( myFileNameGroup, 0, 0 );
-  addWidget( myImageNameGroup, 1, 0 );
-  addWidget( myMappingGroup, 2, 0 );
-
-  setRowStretch();
+  addWidget( myFileNameGroup );
+  addWidget( myImageNameGroup );
+  addWidget( myMappingGroup );
+  addStretch();
 
   connect( aBrowseBtn, SIGNAL( clicked() ), this, SLOT( onBrowse() ) );
 }
@@ -343,8 +342,11 @@ void HYDROGUI_ImportImageDlg::initializePointSelection()
 void HYDROGUI_ImportImageDlg::onBrowse()
 {
   QString aFilter( tr( "IMAGE_FILTER" ) );
-  QString aFileName = QFileDialog::getOpenFileName( this, tr( "BROWSE_IMAGE_FILE" ), "", aFilter );
-  //QString aFileName = "W:/Work/HYDRO/doc/samples/1.bmp";
+#ifdef OUV_DEBUG // to remove
+  QString aFileName = "W:/Work/HYDRO/doc/samples/1.bmp";
+#else
+  QString aFileName = QFileDialog::getOpenFileName( this, tr( "IMPORT_IMAGE_FROM_FILE" ), "", aFilter );
+#endif
   if( !aFileName.isEmpty() )
   {
     QImage anImage( aFileName );