X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchCreator.cpp;h=308dd965f0f544f8e1d579071a0bb958266e6715;hb=33c5fdce3cd63dd95a738439a0399dd982abcd73;hp=4a90a591f741882a50a1d665fff13eb7d5dc299f;hpb=0a913f43ce9d67a7f88869e3d6502a09f0e16111;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 4a90a591f..308dd965f 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -32,6 +33,8 @@ #include #include +#include + #include #include #include @@ -59,6 +62,8 @@ PartSet_WidgetSketchCreator::PartSet_WidgetSketchCreator(QWidget* theParent, myTextLine->setToolTip(aToolTip); myTextLine->installEventFilter(this); + myLabel->setToolTip(aToolTip); + QString aUseBody = QString::fromStdString(theData->getProperty(USE_BODY)); if(!aUseBody.isEmpty()) { myUseBody = QVariant(aUseBody).toBool(); @@ -162,7 +167,7 @@ bool PartSet_WidgetSketchCreator::focusTo() if (aCompFeature->numberOfSubs() == 0) return ModuleBase_ModelWidget::focusTo(); - connect(myModule, SIGNAL(operationResumed(ModuleBase_Operation*)), SLOT(onResumed(ModuleBase_Operation*))); + connect(myModule, SIGNAL(resumed(ModuleBase_Operation*)), SLOT(onResumed(ModuleBase_Operation*))); SessionPtr aMgr = ModelAPI_Session::get(); // Open transaction that is general for the previous nested one: it will be closed on nested commit bool aIsOp = aMgr->isOperation(); @@ -226,5 +231,12 @@ void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp) } } } + else { + // this is a workarount to display the feature results in the operation selection mode + // if this is absent, sketch point/line local selection is available on extrusion cut result + static Events_ID anUpdateEvent = Events_Loop::eventByName(EVENT_OBJECT_UPDATED); + ModelAPI_EventCreator::get()->sendUpdated(feature(), anUpdateEvent); + updateObject(feature()); + } } }