From: akl Date: Wed, 24 Sep 2008 12:06:32 +0000 (+0000) Subject: Additional minor fix of issue 0017431: unset the MODAL behavior for the 'Basic Proper... X-Git-Tag: V5_1_0a2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8cee57a1875ffe457096f1f098d6378eb337d2e1;p=modules%2Fgeom.git Additional minor fix of issue 0017431: unset the MODAL behavior for the 'Basic Properties' information box. --- diff --git a/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx b/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx index 830d54a33..309b8e1bb 100644 --- a/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx +++ b/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx @@ -31,11 +31,11 @@ #include #include -#include #include #include #include +#include class MeasureGUI_WhatisDlg::Whatis : public QGroupBox { @@ -138,6 +138,10 @@ MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent ) layout->setMargin( 0 ); layout->setSpacing( 6 ); layout->addWidget( myGrp ); + // Properties dialog + myParamsDlg = new QMessageBox(QMessageBox::Information, "", "", QMessageBox::Ok, this); + myParamsDlg->setModal( false ); + /***************************************************************/ myHelpFileName = "using_measurement_tools_page.html#whatis_anchor"; @@ -181,6 +185,9 @@ void MeasureGUI_WhatisDlg::processObject() QString aKind = getKindOfShape( aParameters ); myGrp->LineEdit2->setText( aKind ); myGrp->PushButton2->setEnabled( !aParameters.isEmpty()); + myParamsDlg->setWindowTitle(aKind + " " + tr("GEOM_PROPERTIES")); + myParamsDlg->setText(aParameters); + myParamsDlg->adjustSize(); } //================================================================================= @@ -189,12 +196,7 @@ void MeasureGUI_WhatisDlg::processObject() //================================================================================= void MeasureGUI_WhatisDlg::ClickOnProperties() { - QString aParameters; - QString aKind = getKindOfShape( aParameters ); - - SUIT_MessageBox::information( this, - aKind + " " + tr( "GEOM_PROPERTIES" ), - aParameters ); + myParamsDlg->show(); } //================================================================================= diff --git a/src/MeasureGUI/MeasureGUI_WhatisDlg.h b/src/MeasureGUI/MeasureGUI_WhatisDlg.h index f9a698af3..b663f2a21 100644 --- a/src/MeasureGUI/MeasureGUI_WhatisDlg.h +++ b/src/MeasureGUI/MeasureGUI_WhatisDlg.h @@ -28,6 +28,8 @@ #include "MeasureGUI_Skeleton.h" +class QMessageBox; + //================================================================================= // class : MeasureGUI_WhatisDlg // purpose : @@ -56,6 +58,7 @@ private: private: Whatis* myGrp; + QMessageBox* myParamsDlg; }; #endif // MEASUREGUI_WHATISDLG_H