- QAction * action = NULL;
-
- if (type == RS2::ActionDrawLineAngle)
- {
- action = new QAction(tr("&Angle"), 0);
-// action = new QAction(tr("Line: Angle"), tr("&Angle"),
-// QKeySequence(), NULL);
- action->setStatusTip(tr("Draw lines with a given angle"));
- }
- else if (type == RS2::ActionDrawLineHorizontal)
- {
- action = new QAction(tr("&Horizontal"), 0);
-// action = new QAction(tr("Line: Horizontal"), tr("&Horizontal"),
-// QKeySequence(), NULL);
- action->setStatusTip(tr("Draw horizontal lines"));
- }
- else if (type == RS2::ActionDrawLineVertical)
- {
- action = new QAction(tr("H&orizontal / Vertical"), 0);
-// action = new QAction(tr("hor./vert. line"), tr("H&orizontal / Vertical"),
-// QKeySequence(), NULL);
- action->setStatusTip(tr("Draw horizontal/vertical lines"));
- }
-
- return action;