diff --git a/libgui/src/command-widget.cc b/libgui/src/command-widget.cc index eb059943e0..79dbfb65d7 100644 --- a/libgui/src/command-widget.cc +++ b/libgui/src/command-widget.cc @@ -355,14 +355,18 @@ console::console (command_widget *p) setMargins (0); setWrapMode (QsciScintilla::WrapWord); - connect (this, &QsciScintilla::cursorPositionChanged, - this, &console::cursor_position_changed); + // The following three signal-slot connections must use the old syntax or + // they would fail to connect on Windows with warnings like this: + // qt.core.qobject.connect: QObject::connect: signal not found in octave::console - connect (this, &QsciScintilla::textChanged, - this, &console::text_changed); + connect (this, SIGNAL (cursorPositionChanged (int, int)), + this, SLOT (cursor_position_changed (int, int))); - connect (this, &QsciScintilla::modificationAttempted, - this, &console::move_cursor_to_end); + connect (this, SIGNAL (textChanged ()), + this, SLOT (text_changed ())); + + connect (this, SIGNAL (modificationAttempted ()), + this, SLOT (move_cursor_to_end ())); console_lexer *lexer = new console_lexer (); setLexer (lexer);