]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Issue 0016760: improve dialog box
authorvsr <vsr@opencascade.com>
Mon, 9 Jun 2008 07:10:22 +0000 (07:10 +0000)
committervsr <vsr@opencascade.com>
Mon, 9 Jun 2008 07:10:22 +0000 (07:10 +0000)
src/VISUGUI/VisuGUI_FileInfoDlg.cxx

index 5b5b90d248d0ab8fa6d3ce9f80085dc722eca6d6..5e4e6a7f73a219bc139b65c72214a6ba97ccf7a5 100644 (file)
 #include <qlineedit.h>
 
 VisuGUI_FileInfoDlg::VisuGUI_FileInfoDlg( QWidget* parent, SALOME_MED::MedFileInfo* inf )
-  : QtxDialog( parent, 0, true, false, QtxDialog::OK )
+  : QtxDialog( parent, 0, true, true, QtxDialog::OK )
 {
   setCaption( tr( "CAPTION" ) );
+  setSizeGripEnabled( true );
   
   QLineEdit* fname = new QLineEdit( mainFrame() );
   fname->setReadOnly( true );
@@ -45,6 +46,7 @@ VisuGUI_FileInfoDlg::VisuGUI_FileInfoDlg( QWidget* parent, SALOME_MED::MedFileIn
   fsize->setReadOnly( true );
   QLineEdit* medversion = new QLineEdit( mainFrame() );
   medversion->setReadOnly( true );
+  fname->setMinimumWidth( 300 );
   
   QGridLayout* lay = new QGridLayout( mainFrame(), 4, 2, 5, 5 );
   lay->addWidget( new QLabel( tr( "FILE_NAME" ), mainFrame() ), 0, 0 );
@@ -55,6 +57,7 @@ VisuGUI_FileInfoDlg::VisuGUI_FileInfoDlg( QWidget* parent, SALOME_MED::MedFileIn
   lay->addWidget( medversion, 2, 1 );
 
   fname->setText( (char*)inf->fileName );
+  fname->home( false );
   fsize->setText( QString::number( inf->fileSize ) );
 
   QString version;
@@ -69,7 +72,6 @@ VisuGUI_FileInfoDlg::VisuGUI_FileInfoDlg( QWidget* parent, SALOME_MED::MedFileIn
     }
   }
   medversion->setText( version );
-  setFixedSize( 640, 480 );
 }
 
 VisuGUI_FileInfoDlg::~VisuGUI_FileInfoDlg()