summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Action/ActionView.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-14 15:12:19 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-15 07:57:28 +0000
commitd9f5dffcdae2c36db9b7eca1bf2271b4df6cbf29 (patch)
tree3d52eb5003557ad90e4bbff48898119b6d714441 /src/Authoring/Studio/Palettes/Action/ActionView.cpp
parentea01b2449e688f023097a1a168ba8b5f8c842262 (diff)
Fix tooltips and shortcut display
- Added missing shortcuts to tooltips - Added missing tooltips - Unified popup menu shortcut display format Task-number: QT3DS-176 Change-Id: I3ee34c97764f0e0b4d67523b7ce3311945f926ee Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Action/ActionView.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Action/ActionView.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Authoring/Studio/Palettes/Action/ActionView.cpp b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
index e320339d..f447e20e 100644
--- a/src/Authoring/Studio/Palettes/Action/ActionView.cpp
+++ b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
@@ -103,30 +103,30 @@ ActionView::ActionView(const QSize &preferredSize, QWidget *parent)
// These actions will be passed to the context menu. Some of them need to me members, as we
// have to change their enabled state based on selection and previous actions.
- QAction *action = new QAction(tr("New Action\t(%1A)").arg(shiftKey));
+ QAction *action = new QAction(tr("New Action\t%1A").arg(shiftKey));
action->setShortcut(QKeySequence(Qt::SHIFT + Qt::Key_A));
connect(action, &QAction::triggered, this, &ActionView::addAction);
QQuickWidget::addAction(action);
- m_actionCopy = new QAction(tr("Copy Action\t(%1C)").arg(ctrlKey));
+ m_actionCopy = new QAction(tr("Copy Action\t%1C").arg(ctrlKey));
m_actionCopy->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_C));
m_actionCopy->setShortcutContext(Qt::WidgetShortcut);
connect(m_actionCopy, &QAction::triggered, this, &ActionView::copyAction);
QQuickWidget::addAction(m_actionCopy);
- m_actionPaste = new QAction(tr("Paste Action\t(%1V)").arg(ctrlKey));
+ m_actionPaste = new QAction(tr("Paste Action\t%1V").arg(ctrlKey));
m_actionPaste->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_V));
m_actionPaste->setShortcutContext(Qt::WidgetShortcut);
connect(m_actionPaste, &QAction::triggered, this, &ActionView::pasteAction);
QQuickWidget::addAction(m_actionPaste);
- m_actionCut = new QAction(tr("Cut Action\t(%1X)").arg(ctrlKey));
+ m_actionCut = new QAction(tr("Cut Action\t%1X").arg(ctrlKey));
m_actionCut->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_X));
m_actionCut->setShortcutContext(Qt::WidgetShortcut);
connect(m_actionCut, &QAction::triggered, this, &ActionView::cutAction);
QQuickWidget::addAction(m_actionCut);
- m_actionDel = new QAction(tr("Delete Action\t(Del)"));
+ m_actionDel = new QAction(tr("Delete Action\tDel"));
m_actionDel->setShortcut(QKeySequence(Qt::Key_Delete));
m_actionDel->setShortcutContext(Qt::WidgetShortcut);
connect(m_actionDel, &QAction::triggered, [=](){ deleteAction(m_currentActionIndex); });