-QAction * RS_ActionEditCopy::createGUIAction(RS2::ActionType type, QObject * parent)
-{
- QAction * action;
-
- if (type == RS2::ActionEditCopy)
- {
- //QPixmap icon = QPixmap(editcopy_xpm);
- action = new QAction(QIcon(":/res/editcopy2.png"), tr("&Copy"), parent);
- action->setShortcut(Qt::CTRL + Qt::Key_C);
-// action = new QAction(tr("Copy"), QPixmap::fromMimeSource("editcopy2.png"), tr("&Copy"),
-// CTRL+Key_C, parent);
- action->setStatusTip(tr("Copies entities to the clipboard"));
- }
- else
- {
- //icon = QPixmap(editcut_xpm);
- action = new QAction(QIcon(":/res/editcut2.png"), tr("Cu&t"), parent);
- action->setShortcut(Qt::CTRL + Qt::Key_X);
-// action = new QAction(tr("Cut"), QPixmap::fromMimeSource("editcut2.png"), tr("Cu&t"),
-// CTRL+Key_X, parent);
- action->setStatusTip(tr("Cuts entities to the clipboard"));
- }
-
- return action;
-}
-