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
Utilities
Konsole
Commits
0087cc33
Commit
0087cc33
authored
Oct 10, 2020
by
Martin Tobias Holmedahl Sandsmark
Committed by
Kurt Hindenburg
Oct 10, 2020
Browse files
Reduce variable scope
Part of !209
parent
914ac120
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CompositeWidgetFocusWatcher.cpp
View file @
0087cc33
...
...
@@ -35,7 +35,6 @@ CompositeWidgetFocusWatcher::CompositeWidgetFocusWatcher(QWidget *compositeWidge
bool
CompositeWidgetFocusWatcher
::
eventFilter
(
QObject
*
watched
,
QEvent
*
event
)
{
auto
*
focusEvent
=
static_cast
<
QFocusEvent
*>
(
event
);
switch
(
event
->
type
())
{
case
QEvent
::
Close
:
case
QEvent
::
DeferredDelete
:
...
...
@@ -47,7 +46,7 @@ bool CompositeWidgetFocusWatcher::eventFilter(QObject *watched, QEvent *event)
emit
compositeFocusChanged
(
true
);
break
;
case
QEvent
::
FocusOut
:
if
(
focusEvent
->
reason
()
!=
Qt
::
PopupFocusReason
)
{
if
(
static_cast
<
QFocusEvent
*>
(
event
)
->
reason
()
!=
Qt
::
PopupFocusReason
)
{
emit
compositeFocusChanged
(
false
);
}
break
;
...
...
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