From 8cee57a1875ffe457096f1f098d6378eb337d2e1 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 24 Sep 2008 12:06:32 +0000 Subject: [PATCH] Additional minor fix of issue 0017431: unset the MODAL behavior for the 'Basic Properties' information box. --- src/MeasureGUI/MeasureGUI_WhatisDlg.cxx | 16 +++++++++------- src/MeasureGUI/MeasureGUI_WhatisDlg.h | 3 +++ 2 files changed, 12 insertions(+), 7 deletions(-) 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 -- 2.39.2