From e1362eab38396db258470f3dbcd06c1d4200dbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com> Date: Tue, 21 Jul 2009 12:37:04 +0200 Subject: [PATCH] Set Ctrl+E, R as default shortcut for rewrap paragraph Suggested by dt. --- src/plugins/texteditor/basetexteditor.cpp | 2 +- src/plugins/texteditor/texteditoractionhandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 98d42747922..07dfa630e8a 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -3959,7 +3959,7 @@ void BaseTextEditor::rewrapParagraph() } result.append(currentWord); - result.append(QLatin1String(" ")); + result.append(QLatin1Char(' ')); currentWord.clear(); } diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index abf81e0b576..a122704e4bc 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -143,7 +143,7 @@ void TextEditorActionHandler::createActions() m_rewrapParagraphAction = new QAction(tr("&Rewrap Paragraph"), this); command = am->registerAction(m_rewrapParagraphAction, TextEditor::Constants::REWRAP_PARAGRAPH, m_contextId); - //command->setDefaultKeySequence(QKeySequence(tr("Alt+Q"))); (No default key sequence for now.) + command->setDefaultKeySequence(QKeySequence(tr("Ctrl+E, R"))); advancedMenu->addAction(command, Core::Constants::G_EDIT_FORMAT); connect(m_rewrapParagraphAction, SIGNAL(triggered(bool)), this, SLOT(rewrapParagraphAction())); -- GitLab