Mercurial > octave
changeset 32255:d421df248d7c
restrict cset a279f26c2e65 to Qt6
* octave-qobject.cc (start_main_thread): use new signal/slot method
only for Qt6
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sun, 13 Aug 2023 20:47:18 +0200 |
parents | 77ca9064ed4a |
children | 3701ac59d931 112634c3f947 |
files | libgui/src/octave-qobject.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-qobject.cc Sun Aug 13 18:25:10 2023 +0200 +++ b/libgui/src/octave-qobject.cc Sun Aug 13 20:47:18 2023 +0200 @@ -411,8 +411,11 @@ // With the old terminal widget, we defer initializing and executing // the interpreter until after the main window and QApplication are // running to prevent race conditions. - +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QTimer::singleShot (0, m_interpreter_qobj, &interpreter_qobject::execute); +#else + QTimer::singleShot (0, m_interpreter_qobj, SLOT (execute ())); +#endif m_interpreter_qobj->moveToThread (m_main_thread);