Mercurial > octave
diff libgui/src/terminal-dock-widget.cc @ 23808:2b1b2a795ba6
update clickable urls in terminal also when visible terminal has no focus
* QTerminal.h: virtual slot for handling changes in the visibility of the
terminal
* QUnixTerminalImp.cpp (handle_visibility_changed): implementation of the
virtual slot, calling function TerminalView::visibility_changed for
doing required actions
* QUnixTerminalImpl.h: new slothandle_visibility_changed
* TerminalView.cpp (TerminalView): create timer for processing the filters;
(blinkCursorEvent): do not update the filters here;
(visibility_changed): function called from the visibility changed slot,
en-/disabling cyclic timer for processing the filter chain
* TerminalView.h: make processFilters a slot allowing to connect the new
timer to it, new function visibility_changed, new class variable holding
the time for processing the filter chain
* terminal_dock_widget.cc (terminal_dock_widget): connect the signal for
changed visibility to the new slot of the terminal
author | Torsten <mttl@mailbox.org> |
---|---|
date | Sat, 29 Jul 2017 09:17:53 +0200 |
parents | 092078913d54 |
children | 9107bae20480 |
line wrap: on
line diff
--- a/libgui/src/terminal-dock-widget.cc Fri Jul 28 15:40:00 2017 -0700 +++ b/libgui/src/terminal-dock-widget.cc Sat Jul 29 09:17:53 2017 +0200 @@ -42,6 +42,10 @@ connect (terminal, SIGNAL (interrupt_signal (void)), this, SLOT (terminal_interrupt ())); + + // Connect the visibility signal to the terminal for dis-/enabling timers + connect (this, SIGNAL (visibilityChanged (bool)), + terminal, SLOT (handle_visibility_changed (bool))); } bool