if (ModuleBase_Tools::isDeleteFeatureWithReferences(anObjects, aDirectRefFeatures,
aIndirectRefFeatures, desktop(), doDeleteReferences)) {
// start operation
- QString aDescription = contextMenuMgr()->action("DELETE_CMD")->text();
- aDescription += " " + aDescription.arg(XGUI_Tools::unionOfObjectNames(anObjects, ", "));
+ QString aDescription = contextMenuMgr()->action("DELETE_CMD")->text() + " %1";
+ aDescription = aDescription.arg(XGUI_Tools::unionOfObjectNames(anObjects, ", "));
ModuleBase_OperationAction* anOpAction = new ModuleBase_OperationAction(aDescription, module());
operationMgr()->startOperation(anOpAction);
FeaturePtr aFeature;
QObjectPtrList aSelList = theObjects;
std::list<ResultPtr> aResList;
+ bool aHasHidden = false;
foreach(ObjectPtr aObj, theObjects) {
aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObj);
if (aFeature.get()) {
aResList = aFeature->results();
std::list<std::shared_ptr<ModelAPI_Result> >::const_iterator aIt;
for(aIt = aResList.cbegin(); aIt != aResList.cend(); aIt++) {
+ aHasHidden |= (*aIt)->isConcealed();
aSelList.append(*aIt);
}
}
objectBrowser()->setObjectsSelected(aSelList);
objectBrowser()->blockSignals(aBlocked);
}
+ if (aHasHidden)
+ QMessageBox::information(desktop(), tr("Find results"),
+ tr("Not all results can be highlighted"), QMessageBox::Ok);
}
void XGUI_Workshop::highlightFeature(const QObjectPtrList& theObjects)