aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/actionhandler.cpp
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2017-07-30 21:38:49 +0200
committerJochen Becher <jochen_becher@gmx.de>2017-08-06 10:47:10 +0000
commit9a926e4de651551d33d5899dbf14cf83db8498fa (patch)
treee2d3001d7de8541b02aeef40eeab1ca43ba71359 /src/plugins/modeleditor/actionhandler.cpp
parent2b311792c54e6a142a94f3c606c884fd3f267fe0 (diff)
ModelEditor: Remove QStringLiteral from plugin code
Change-Id: Ia88af8340540790bb6922682166c662863ebcaa3 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/modeleditor/actionhandler.cpp')
-rw-r--r--src/plugins/modeleditor/actionhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/modeleditor/actionhandler.cpp b/src/plugins/modeleditor/actionhandler.cpp
index 2bb98d85b8..ecb852a247 100644
--- a/src/plugins/modeleditor/actionhandler.cpp
+++ b/src/plugins/modeleditor/actionhandler.cpp
@@ -160,7 +160,7 @@ void ActionHandler::createActions()
d->removeAction = removeCommand->action();
Core::Command *deleteCommand = registerCommand(
Constants::DELETE_SELECTED_ELEMENTS, [this]() { deleteSelectedElements(); }, d->context, true,
- tr("&Delete"), QKeySequence(QStringLiteral("Ctrl+D")));
+ tr("&Delete"), QKeySequence("Ctrl+D"));
medit->addAction(deleteCommand, Core::Constants::G_EDIT_COPYPASTE);
d->deleteAction = deleteCommand->action();
d->selectAllAction = registerCommand(Core::Constants::SELECTALL, [this]() { selectAll(); }, d->context)->action();
@@ -180,26 +180,26 @@ void ActionHandler::createActions()
Core::Command *zoomInCommand = registerCommand(
Constants::ZOOM_IN, [this]() { zoomIn(); }, d->context, true,
- tr("Zoom In"), QKeySequence(QStringLiteral("Ctrl++")));
+ tr("Zoom In"), QKeySequence("Ctrl++"));
menuModelEditor->addAction(zoomInCommand);
d->zoomInAction = zoomInCommand->action();
Core::Command *zoomOutCommand = registerCommand(
Constants::ZOOM_OUT, [this]() { zoomOut(); }, d->context, true,
- tr("Zoom Out"), QKeySequence(QStringLiteral("Ctrl+-")));
+ tr("Zoom Out"), QKeySequence("Ctrl+-"));
menuModelEditor->addAction(zoomOutCommand);
d->zoomOutAction = zoomOutCommand->action();
Core::Command *resetZoomCommand = registerCommand(
Constants::RESET_ZOOM, [this]() { resetZoom(); }, d->context, true,
- tr("Reset Zoom"), QKeySequence(QStringLiteral("Ctrl+0")));
+ tr("Reset Zoom"), QKeySequence("Ctrl+0"));
menuModelEditor->addAction(resetZoomCommand);
d->zoomOutAction = resetZoomCommand->action();
d->openParentDiagramAction = registerCommand(
Constants::OPEN_PARENT_DIAGRAM, [this]() { openParentDiagram(); }, Core::Context(), true,
- tr("Open Parent Diagram"), QKeySequence(QStringLiteral("Ctrl+Shift+P")))->action();
- d->openParentDiagramAction->setIcon(QIcon(QStringLiteral(":/modeleditor/up.png")));
+ tr("Open Parent Diagram"), QKeySequence("Ctrl+Shift+P"))->action();
+ d->openParentDiagramAction->setIcon(QIcon(":/modeleditor/up.png"));
registerCommand(Constants::ACTION_ADD_PACKAGE, nullptr, Core::Context(), true, tr("Add Package"));
registerCommand(Constants::ACTION_ADD_COMPONENT, nullptr, Core::Context(), true, tr("Add Component"));
registerCommand(Constants::ACTION_ADD_CLASS, nullptr, Core::Context(), true, tr("Add Class"));