PartDesign: Fix context menus
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <QMessageBox>
|
||||
#include <QMenu>
|
||||
# include <Inventor/nodes/SoSeparator.h>
|
||||
# include <TopExp.hxx>
|
||||
# include <TopTools_IndexedMapOfShape.hxx>
|
||||
@@ -172,3 +173,10 @@ void ViewProviderShapeBinder::highlightReferences(const bool on, bool auxillery)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderShapeBinder::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
QAction* act;
|
||||
act = menu->addAction(QObject::tr("Edit shape binder"), receiver, member);
|
||||
act->setData(QVariant((int)ViewProvider::Default));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user