# HG changeset patch # User Torsten Lilge # Date 1641931109 -3600 # Node ID 754ad6e9c0a53f4622ff0b4284fba37a6134ca05 # Parent 51770116f835fb081dfc9a23b39c6092b1ed59fa do not change tool tip font when in debug mode (bug #61792) * octave-qscintilla.cc: remove obsolete initialization of m_tooltip_font; (handle_enter_debug_mode): do not save old and set new tooltip font; (handle_exit_debug_mode): no tooltip font to restore * octave-qscintilla.h: remove obsolete variable m_tooltip_font diff -r 51770116f835 -r 754ad6e9c0a5 libgui/src/m-editor/octave-qscintilla.cc --- a/libgui/src/m-editor/octave-qscintilla.cc Tue Jan 11 20:43:35 2022 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.cc Tue Jan 11 20:58:29 2022 +0100 @@ -113,8 +113,7 @@ octave_qscintilla::octave_qscintilla (QWidget *p, base_qobject& oct_qobj) : QsciScintilla (p), m_octave_qobj (oct_qobj), m_debug_mode (false), m_word_at_cursor (), m_selection (), m_selection_replacement (), - m_selection_line (-1), m_selection_col (-1), m_indicator_id (1), - m_tooltip_font (QToolTip::font ()) + m_selection_line (-1), m_selection_col (-1), m_indicator_id (1) { connect (this, SIGNAL (textChanged (void)), this, SLOT (text_changed (void))); @@ -1352,19 +1351,12 @@ void octave_qscintilla::handle_enter_debug_mode (void) { - // Set tool tip font to the lexers default font - m_tooltip_font = QToolTip::font (); // Save current font - QToolTip::setFont (lexer ()->defaultFont ()); - m_debug_mode = true; } void octave_qscintilla::handle_exit_debug_mode (void) { m_debug_mode = false; - - // Reset tool tip font - QToolTip::setFont (m_tooltip_font); } } diff -r 51770116f835 -r 754ad6e9c0a5 libgui/src/m-editor/octave-qscintilla.h --- a/libgui/src/m-editor/octave-qscintilla.h Tue Jan 11 20:43:35 2022 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.h Tue Jan 11 20:58:29 2022 +0100 @@ -154,8 +154,6 @@ int m_selection_line; int m_selection_col; int m_indicator_id; - - QFont m_tooltip_font; }; }