mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
PAL20915 TC5.1.1: field "Value" is not shown for assigned hypothesis
Since NoteBook appears, "Value" OB field shows names of variable and not values of parameters
This commit is contained in:
parent
6776ffa8ed
commit
fd5333a3ed
@ -164,11 +164,12 @@ bool SMESHGUI_GenericHypothesisCreator::editHypothesis( SMESH::SMESH_Hypothesis_
|
|||||||
myEventLoop->exec(); // make myDlg not modal
|
myEventLoop->exec(); // make myDlg not modal
|
||||||
res = myDlg->result();
|
res = myDlg->result();
|
||||||
if( res ) {
|
if( res ) {
|
||||||
QString paramValues = storeParams();
|
/*QString paramValues = */storeParams();
|
||||||
if ( !paramValues.isEmpty() ) {
|
// No longer needed since NoteBook appears and "Value" OB field shows names of variable
|
||||||
if ( _PTR(SObject) SHyp = SMESH::FindSObject( myHypo ))
|
// if ( !paramValues.isEmpty() ) {
|
||||||
SMESH::SetValue( SHyp, paramValues );
|
// if ( _PTR(SObject) SHyp = SMESH::FindSObject( myHypo ))
|
||||||
}
|
// SMESH::SetValue( SHyp, paramValues );
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete Dlg; myDlg = 0;
|
delete Dlg; myDlg = 0;
|
||||||
@ -243,7 +244,7 @@ QFrame* SMESHGUI_GenericHypothesisCreator::buildStdFrame()
|
|||||||
w = sb;
|
w = sb;
|
||||||
}
|
}
|
||||||
else if(aStudy->IsReal(aVar.toLatin1().constData())){
|
else if(aStudy->IsReal(aVar.toLatin1().constData())){
|
||||||
SalomeApp_DoubleSpinBox* sb = new SalomeApp_DoubleSpinBox( GroupC1 );
|
SalomeApp_DoubleSpinBox* sb = new SMESHGUI_SpinBox( GroupC1 );
|
||||||
sb->setObjectName( (*anIt).myName );
|
sb->setObjectName( (*anIt).myName );
|
||||||
attuneStdWidget( sb, i );
|
attuneStdWidget( sb, i );
|
||||||
sb->setText( aVar );
|
sb->setText( aVar );
|
||||||
@ -339,12 +340,8 @@ QStringList SMESHGUI_GenericHypothesisCreator::getVariablesFromDlg() const
|
|||||||
QStringList aResult;
|
QStringList aResult;
|
||||||
ListOfWidgets::const_iterator anIt = widgets().begin(), aLast = widgets().end();
|
ListOfWidgets::const_iterator anIt = widgets().begin(), aLast = widgets().end();
|
||||||
for( ; anIt!=aLast; anIt++ ) {
|
for( ; anIt!=aLast; anIt++ ) {
|
||||||
if( (*anIt)->inherits( "SalomeApp_IntSpinBox" ) ) {
|
if( (*anIt)->inherits( "QAbstractSpinBox" ) ) {
|
||||||
SalomeApp_IntSpinBox* sb = ( SalomeApp_IntSpinBox* )( *anIt );
|
QAbstractSpinBox* sb = ( QAbstractSpinBox* )( *anIt );
|
||||||
aResult.append(sb->text());
|
|
||||||
}
|
|
||||||
else if( (*anIt)->inherits( "QtxDoubleSpinBox" ) ) {
|
|
||||||
QtxDoubleSpinBox* sb = ( QtxDoubleSpinBox* )( *anIt );
|
|
||||||
aResult.append(sb->text());
|
aResult.append(sb->text());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user