mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
1) Fix for the issue "21220: EDF SMESH: Split into tetra from group does not work"
2) Change mechanism of the adding items in the QListWidget.
This commit is contained in:
parent
b9db0238dc
commit
2290c49819
@ -776,12 +776,13 @@ void SMESHGUI_MultiEditDlg::onAddBtn()
|
|||||||
bool isGroupOrSubmesh = (mySubmeshChk->isChecked() || myGroupChk->isChecked());
|
bool isGroupOrSubmesh = (mySubmeshChk->isChecked() || myGroupChk->isChecked());
|
||||||
mySubmeshChk->setChecked(false);
|
mySubmeshChk->setChecked(false);
|
||||||
myGroupChk->setChecked(false);
|
myGroupChk->setChecked(false);
|
||||||
|
QStringList items;
|
||||||
for(int i = 1; i <= toBeAdded.Extent(); i++)
|
for(int i = 1; i <= toBeAdded.Extent(); i++)
|
||||||
if (myIds.Add(toBeAdded(i))) {
|
if (myIds.Add(toBeAdded(i))) {
|
||||||
QListWidgetItem* item = new QListWidgetItem(QString("%1").arg(toBeAdded(i)));
|
items.append(QString("%1").arg(toBeAdded(i)));
|
||||||
myListBox->addItem(item);
|
|
||||||
item->setSelected(true);
|
|
||||||
}
|
}
|
||||||
|
myListBox->addItems(items);
|
||||||
|
myListBox->selectAll();
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
emit ListContensChanged();
|
emit ListContensChanged();
|
||||||
@ -1480,7 +1481,7 @@ SMESHGUI_CuttingIntoTetraDlg::SMESHGUI_CuttingIntoTetraDlg(SMESHGUI* theModule)
|
|||||||
{
|
{
|
||||||
setWindowTitle(tr("CAPTION"));
|
setWindowTitle(tr("CAPTION"));
|
||||||
myHelpFileName = "split_to_tetra_page.html";
|
myHelpFileName = "split_to_tetra_page.html";
|
||||||
myEntityType = SMESH::VolumeFilter;
|
myEntityType = 1;
|
||||||
|
|
||||||
myToAllChk->setChecked( true ); //aplly to the whole mesh by default
|
myToAllChk->setChecked( true ); //aplly to the whole mesh by default
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user