From: dmv Date: Thu, 16 Oct 2008 11:53:12 +0000 (+0000) Subject: Qt4 porting. Modification, Orientation, Filter. Bad oriented volume criterion. Compar... X-Git-Tag: V5_1_0a3~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ab9c302deacf37196fd233e6a099e21ab047e5a;p=modules%2Fsmesh.git Qt4 porting. Modification, Orientation, Filter. Bad oriented volume criterion. Compare is editable. --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index d0b2c15dd..1ad06d9d0 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1308,6 +1308,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con if (aCompareItem->count() > 0) aCompareItem->clear(); + aTable->setEditable(false, row, 1); aTable->setEditable(false, row, 2); aTable->blockSignals( isSignalsBlocked ); @@ -1322,6 +1323,8 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con QMap aMap; aMap[ SMESH::FT_EqualTo ] = tr("EQUAL_TO"); aCompareItem->setItems(aMap); + if (!aTable->isEditable(row, 2)) + aTable->setEditable(true, row, 1); if (!aTable->isEditable(row, 2)) aTable->setEditable(true, row, 2); } @@ -1336,6 +1339,8 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con bool isOk = false; aText.toDouble(&isOk); aTable->item( row, 2 )->setText(isOk ? aText : QString("")); + if (!aTable->isEditable(row, 1)) + aTable->setEditable(true, row, 1); if (!aTable->isEditable(row, 2)) aTable->setEditable(true, row, 2); }