From 0b80d1b5b910f850b689e1668c169682f6ff9e6c Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:41:39 +0100 Subject: [PATCH] a few translated shortcuts were still there ... fixed! --- sources/qetdiagrameditor.cpp | 4 ++-- sources/richtext/richtexteditor.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index 070d99071..ad941588f 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -275,7 +275,7 @@ void QETDiagramEditor::setUpActions() //Print m_print = new QAction(QET::Icons::DocumentPrint, tr("Imprimer"), this); - m_print->setShortcut(QKeySequence(QKeySequence::Print)); + m_print->setShortcut(QKeySequence::Print); m_print->setStatusTip(tr("Imprime un ou plusieurs folios du projet courant", "status bar tip")); connect(m_print, &QAction::triggered, [this]() { auto project = currentProject(); @@ -548,7 +548,7 @@ void QETDiagramEditor::setUpActions() open_file ->setShortcut(QKeySequence::Open); m_close_file ->setShortcut(QKeySequence::Close); m_save_file ->setShortcut(QKeySequence::Save); - m_save_file_as ->setShortcut(tr("Ctrl+Shift+S")); + m_save_file_as ->setShortcut(Qt::CTRL | Qt::SHIFT | Qt::Key_S); new_file ->setStatusTip( tr("Crée un nouveau projet", "status bar tip") ); open_file ->setStatusTip( tr("Ouvre un projet existant", "status bar tip") ); diff --git a/sources/richtext/richtexteditor.cpp b/sources/richtext/richtexteditor.cpp index 3c45456d9..cfc9e270d 100644 --- a/sources/richtext/richtexteditor.cpp +++ b/sources/richtext/richtexteditor.cpp @@ -461,19 +461,19 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor, m_bold_action = createCheckableAction( QIcon(":/ico/32x32/format-text-bold.png"), tr("Texte en gras"), editor, SLOT(setFontBold(bool)), this); - m_bold_action->setShortcut(tr("CTRL+B")); + m_bold_action->setShortcut(Qt::CTRL | Qt::Key_B); addAction(m_bold_action); m_italic_action = createCheckableAction( QIcon(":/ico/32x32/format-text-italic.png"), tr("Texte en italique"), editor, SLOT(setFontItalic(bool)), this); - m_italic_action->setShortcut(tr("CTRL+I")); + m_italic_action->setShortcut(Qt::CTRL | Qt::Key_I); addAction(m_italic_action); m_underline_action = createCheckableAction( QIcon(":/ico/32x32/format-text-underline.png"), tr("Texte souligé"), editor, SLOT(setFontUnderline(bool)), this); - m_underline_action->setShortcut(tr("CTRL+U")); + m_underline_action->setShortcut(Qt::CTRL | Qt::Key_U); addAction(m_underline_action);