mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Qt4 porting. Modification, Orientation, Filter. Bad oriented volume criterion. Compare is editable.
This commit is contained in:
parent
b110ecd69d
commit
9ab9c302de
@ -1308,6 +1308,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
|
|||||||
|
|
||||||
if (aCompareItem->count() > 0)
|
if (aCompareItem->count() > 0)
|
||||||
aCompareItem->clear();
|
aCompareItem->clear();
|
||||||
|
aTable->setEditable(false, row, 1);
|
||||||
aTable->setEditable(false, row, 2);
|
aTable->setEditable(false, row, 2);
|
||||||
|
|
||||||
aTable->blockSignals( isSignalsBlocked );
|
aTable->blockSignals( isSignalsBlocked );
|
||||||
@ -1322,6 +1323,8 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
|
|||||||
QMap<int, QString> aMap;
|
QMap<int, QString> aMap;
|
||||||
aMap[ SMESH::FT_EqualTo ] = tr("EQUAL_TO");
|
aMap[ SMESH::FT_EqualTo ] = tr("EQUAL_TO");
|
||||||
aCompareItem->setItems(aMap);
|
aCompareItem->setItems(aMap);
|
||||||
|
if (!aTable->isEditable(row, 2))
|
||||||
|
aTable->setEditable(true, row, 1);
|
||||||
if (!aTable->isEditable(row, 2))
|
if (!aTable->isEditable(row, 2))
|
||||||
aTable->setEditable(true, 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;
|
bool isOk = false;
|
||||||
aText.toDouble(&isOk);
|
aText.toDouble(&isOk);
|
||||||
aTable->item( row, 2 )->setText(isOk ? aText : QString(""));
|
aTable->item( row, 2 )->setText(isOk ? aText : QString(""));
|
||||||
|
if (!aTable->isEditable(row, 1))
|
||||||
|
aTable->setEditable(true, row, 1);
|
||||||
if (!aTable->isEditable(row, 2))
|
if (!aTable->isEditable(row, 2))
|
||||||
aTable->setEditable(true, row, 2);
|
aTable->setEditable(true, row, 2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user