From abbdc0df1fefc35e8616d4f057c8d0149c39db6d Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 9 Jun 2008 07:10:22 +0000 Subject: [PATCH] Issue 0016760: improve dialog box --- src/VISUGUI/VisuGUI_FileInfoDlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() -- 2.39.2