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
4445c5e1
Commit
4445c5e1
authored
Oct 11, 2020
by
Gustavo Carneiro
Committed by
Kurt Hindenburg
Oct 20, 2020
Browse files
Simplify CompositeWidgetFocusWatcher constructor.
parent
81a3e4f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/CompositeWidgetFocusWatcher.cpp
View file @
4445c5e1
...
...
@@ -26,8 +26,8 @@
using
namespace
Konsole
;
CompositeWidgetFocusWatcher
::
CompositeWidgetFocusWatcher
(
QWidget
*
compositeWidget
,
QObject
*
parent
)
:
QObject
(
paren
t
)
CompositeWidgetFocusWatcher
::
CompositeWidgetFocusWatcher
(
QWidget
*
compositeWidget
)
:
QObject
(
compositeWidge
t
)
,
_compositeWidget
(
compositeWidget
)
{
registerWidgetAndChildren
(
compositeWidget
);
...
...
src/CompositeWidgetFocusWatcher.h
View file @
4445c5e1
...
...
@@ -37,7 +37,7 @@ class CompositeWidgetFocusWatcher : public QObject
Q_OBJECT
public:
explicit
CompositeWidgetFocusWatcher
(
QWidget
*
compositeWidget
,
QObject
*
parent
);
explicit
CompositeWidgetFocusWatcher
(
QWidget
*
compositeWidget
);
bool
eventFilter
(
QObject
*
watched
,
QEvent
*
event
)
Q_DECL_OVERRIDE
;
Q_SIGNALS:
...
...
src/terminalDisplay/TerminalDisplay.cpp
View file @
4445c5e1
...
...
@@ -564,7 +564,7 @@ TerminalDisplay::TerminalDisplay(QWidget* parent)
new
AutoScrollHandler
(
this
);
// Keep this last
CompositeWidgetFocusWatcher
*
focusWatcher
=
new
CompositeWidgetFocusWatcher
(
this
,
this
);
CompositeWidgetFocusWatcher
*
focusWatcher
=
new
CompositeWidgetFocusWatcher
(
this
);
connect
(
focusWatcher
,
&
CompositeWidgetFocusWatcher
::
compositeFocusChanged
,
this
,
[
this
](
bool
focused
)
{
_hasCompositeFocus
=
focused
;});
connect
(
focusWatcher
,
&
CompositeWidgetFocusWatcher
::
compositeFocusChanged
,
...
...
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