mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
a few translated shortcuts were still there ... fixed!
This commit is contained in:
parent
b512aee2bf
commit
0b80d1b5b9
@ -275,7 +275,7 @@ void QETDiagramEditor::setUpActions()
|
|||||||
|
|
||||||
//Print
|
//Print
|
||||||
m_print = new QAction(QET::Icons::DocumentPrint, tr("Imprimer"), this);
|
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"));
|
m_print->setStatusTip(tr("Imprime un ou plusieurs folios du projet courant", "status bar tip"));
|
||||||
connect(m_print, &QAction::triggered, [this]() {
|
connect(m_print, &QAction::triggered, [this]() {
|
||||||
auto project = currentProject();
|
auto project = currentProject();
|
||||||
@ -548,7 +548,7 @@ void QETDiagramEditor::setUpActions()
|
|||||||
open_file ->setShortcut(QKeySequence::Open);
|
open_file ->setShortcut(QKeySequence::Open);
|
||||||
m_close_file ->setShortcut(QKeySequence::Close);
|
m_close_file ->setShortcut(QKeySequence::Close);
|
||||||
m_save_file ->setShortcut(QKeySequence::Save);
|
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") );
|
new_file ->setStatusTip( tr("Crée un nouveau projet", "status bar tip") );
|
||||||
open_file ->setStatusTip( tr("Ouvre un projet existant", "status bar tip") );
|
open_file ->setStatusTip( tr("Ouvre un projet existant", "status bar tip") );
|
||||||
|
@ -461,19 +461,19 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor,
|
|||||||
m_bold_action = createCheckableAction(
|
m_bold_action = createCheckableAction(
|
||||||
QIcon(":/ico/32x32/format-text-bold.png"),
|
QIcon(":/ico/32x32/format-text-bold.png"),
|
||||||
tr("Texte en gras"), editor, SLOT(setFontBold(bool)), this);
|
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);
|
addAction(m_bold_action);
|
||||||
|
|
||||||
m_italic_action = createCheckableAction(
|
m_italic_action = createCheckableAction(
|
||||||
QIcon(":/ico/32x32/format-text-italic.png"),
|
QIcon(":/ico/32x32/format-text-italic.png"),
|
||||||
tr("Texte en italique"), editor, SLOT(setFontItalic(bool)), this);
|
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);
|
addAction(m_italic_action);
|
||||||
|
|
||||||
m_underline_action = createCheckableAction(
|
m_underline_action = createCheckableAction(
|
||||||
QIcon(":/ico/32x32/format-text-underline.png"),
|
QIcon(":/ico/32x32/format-text-underline.png"),
|
||||||
tr("Texte souligé"), editor, SLOT(setFontUnderline(bool)), this);
|
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);
|
addAction(m_underline_action);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user