Updated the code to enable the selection decorator to the new signal slot mechanism

This commit is contained in:
Paolo Cignoni cignoni 2014-11-06 23:47:52 +00:00
parent d6dd893af4
commit c08cef4edf
2 changed files with 4 additions and 4 deletions

View File

@ -243,10 +243,10 @@ bool EditSelectPlugin::StartEdit(MeshModel &m, GLArea *gla )
{
gla->setCursor(QCursor(QPixmap(":/images/sel_rect.png"),1,1));
connect(this, SIGNAL(setSelectionRendering(bool)),gla,SLOT(setSelectFaceRendering(bool)) );
connect(this, SIGNAL(setSelectionRendering(bool)),gla,SLOT(setSelectVertRendering(bool)) );
connect(this, SIGNAL(setDecorator(QString,bool)),gla,SLOT(setDecorator(QString,bool)) );
setSelectionRendering(true);
setDecorator("Show Selected Faces",true);
setDecorator("Show Selected Vertices",true);
if(selectionMode)
m.updateDataMask(MeshModel::MM_FACEFACETOPO);

View File

@ -57,7 +57,7 @@ public:
std::vector<CMeshO::VertexPointer> LastSelVert;
signals:
void setSelectionRendering(bool);
void setDecorator(QString,bool);
private:
typedef enum {SMAdd, SMClear,SMSub} ComposingSelMode; // How the selection are composed