From: rnv Date: Tue, 12 Apr 2011 12:28:40 +0000 (+0000) Subject: 1) Fix for the issue "21220: EDF SMESH: Split into tetra from group does not work" X-Git-Tag: V6_3_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2290c49819756faa03b139b3766c1cf09be6c8ad;p=modules%2Fsmesh.git 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. --- diff --git a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx index 7755297eb..cdd6f7908 100755 --- a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx @@ -776,12 +776,13 @@ void SMESHGUI_MultiEditDlg::onAddBtn() bool isGroupOrSubmesh = (mySubmeshChk->isChecked() || myGroupChk->isChecked()); mySubmeshChk->setChecked(false); myGroupChk->setChecked(false); + QStringList items; for(int i = 1; i <= toBeAdded.Extent(); i++) if (myIds.Add(toBeAdded(i))) { - QListWidgetItem* item = new QListWidgetItem(QString("%1").arg(toBeAdded(i))); - myListBox->addItem(item); - item->setSelected(true); + items.append(QString("%1").arg(toBeAdded(i))); } + myListBox->addItems(items); + myListBox->selectAll(); myBusy = false; emit ListContensChanged(); @@ -1480,7 +1481,7 @@ SMESHGUI_CuttingIntoTetraDlg::SMESHGUI_CuttingIntoTetraDlg(SMESHGUI* theModule) { setWindowTitle(tr("CAPTION")); myHelpFileName = "split_to_tetra_page.html"; - myEntityType = SMESH::VolumeFilter; + myEntityType = 1; myToAllChk->setChecked( true ); //aplly to the whole mesh by default