Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
191ac17e
Commit
191ac17e
authored
Aug 01, 2022
by
Pablo Rauzy
Committed by
Christoph Cullmann
Aug 14, 2022
Browse files
improve code quality: Minor - The scope of the variable 'keyEvent' can be reduced
parent
5e5bad7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/keyboardmacros/keyboardmacrosplugin.cpp
View file @
191ac17e
...
...
@@ -136,9 +136,9 @@ bool KeyboardMacrosPlugin::play()
if
(
m_macro
.
isEmpty
())
{
return
false
;
}
QKeyEvent
*
keyEvent
;
Macro
::
Iterator
it
;
for
(
it
=
m_macro
.
begin
();
it
!=
m_macro
.
end
();
it
++
)
{
QKeyEvent
*
keyEvent
;
// send key press
keyEvent
=
(
*
it
).
keyPress
();
qApp
->
sendEvent
(
qApp
->
focusWidget
(),
keyEvent
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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