mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 02:24:38 +00:00
Added a QActionGroup for the menu options
This commit is contained in:
parent
52119ac5c9
commit
ddcb730abf
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user