From: vsr Date: Mon, 9 Jun 2008 07:10:22 +0000 (+0000) Subject: Issue 0016760: improve dialog box X-Git-Tag: V4_1_0_maintainance_20080610~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abbdc0df1fefc35e8616d4f057c8d0149c39db6d;p=modules%2Fvisu.git Issue 0016760: improve dialog box --- diff --git a/src/VISUGUI/VisuGUI_FileInfoDlg.cxx b/src/VISUGUI/VisuGUI_FileInfoDlg.cxx index 5b5b90d2..5e4e6a7f 100644 --- a/src/VISUGUI/VisuGUI_FileInfoDlg.cxx +++ b/src/VISUGUI/VisuGUI_FileInfoDlg.cxx @@ -35,9 +35,10 @@ #include 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()