Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e1362eab
Commit
e1362eab
authored
Jul 21, 2009
by
Thorbjørn Lindeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Ctrl+E, R as default shortcut for rewrap paragraph
Suggested by dt.
parent
ca825d2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+1
-1
src/plugins/texteditor/texteditoractionhandler.cpp
src/plugins/texteditor/texteditoractionhandler.cpp
+1
-1
No files found.
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
Markdown
is supported
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