fixes 0003148: PartDesign does not allow colouring of single faces for non-primitives

This commit is contained in:
wmayer
2018-09-24 19:30:36 +02:00
parent 8668296f9c
commit 3653d7ed11
12 changed files with 19 additions and 0 deletions

View File

@@ -25,7 +25,9 @@
#ifndef _PreComp_
# include <QMessageBox>
# include <QAction>
# include <QApplication>
# include <QMenu>
#include <Inventor/nodes/SoSwitch.h>
#endif
@@ -89,6 +91,12 @@ bool ViewProvider::doubleClicked(void)
return true;
}
void ViewProvider::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
QAction* act = menu->addAction(QObject::tr("Set colors..."), receiver, member);
act->setData(QVariant((int)ViewProvider::Color));
}
bool ViewProvider::setEdit(int ModNum)
{
if (ModNum == ViewProvider::Default ) {