- QAction * action;
-
- if (type == RS2::ActionZoomIn)
- {
- action = new QAction(QIcon(":/res/zoomin.png"), tr("Zoom &In"), 0);
-// action = new QAction(tr("Zoom in"), QPixmap::fromMimeSource("zoomin.png"),
-// tr("Zoom &In"), QKeySequence(), NULL);
- action->setStatusTip(tr("Zooms in"));
- }
- else
- {
- action = new QAction(QIcon(":/res/zoomout.png"), tr("Zoom &Out"), 0);
-// action = new QAction(tr("Zoom out"), QPixmap::fromMimeSource("zoomout.png"),
-// tr("Zoom &Out"), QKeySequence(), NULL);
- action->setStatusTip(tr("Zooms out"));
- }
-
- return action;