Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e1362eab
Commit
e1362eab
authored
Jul 21, 2009
by
Thorbjørn Lindeijer
Browse files
Set Ctrl+E, R as default shortcut for rewrap paragraph
Suggested by dt.
parent
ca825d2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
e1362eab
...
...
@@ -3959,7 +3959,7 @@ void BaseTextEditor::rewrapParagraph()
}
result
.
append
(
currentWord
);
result
.
append
(
QLatin1
String
(
" "
));
result
.
append
(
QLatin1
Char
(
' '
));
currentWord
.
clear
();
}
...
...
src/plugins/texteditor/texteditoractionhandler.cpp
View file @
e1362eab
...
...
@@ -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
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment