Added a QActionGroup for the menu options

This commit is contained in:
Paolo Cignoni cignoni 2005-12-06 16:39:41 +00:00
parent 52119ac5c9
commit ddcb730abf

View File

@ -49,10 +49,28 @@ public:
MeshColorCurvaturePlugin()
{
//QActionGroup * ag = new QActionGroup(this);
actionList << new QAction(QString("None"),this);
actionList << new QAction(QString("Per Face"),this);
actionList << new QAction(QString("Per Vertex"),this);
QAction *qa;
QActionGroup * ag;
ag = new QActionGroup(this);
ag->setExclusive(true);
qa = new QAction(QString("None"),this);
qa->setActionGroup(ag);
qa->setCheckable(true);
qa->setChecked(true);
actionList << qa;
qa = new QAction(QString("Per Face"),this);
qa->setActionGroup(ag);
qa->setCheckable(true);
actionList << qa;
qa = new QAction(QString("Per Vertex"),this);
qa->setActionGroup(ag);
qa->setCheckable(true);
actionList << qa;
actionList << new QAction(QString("Gaussian Curvature"),this);
}