Gui: move to new style connect()

This commit is contained in:
wmayer
2023-02-01 11:58:00 +01:00
committed by wwmayer
parent 25a63f8750
commit 2e5cb03261
43 changed files with 237 additions and 246 deletions

View File

@@ -1429,7 +1429,7 @@ QString PythonConsole::readline( )
printPrompt(PythonConsole::Special);
this->_sourceDrain = &inputBuffer; //< enable source drain ...
// ... and wait until we get notified about pendingSource
QObject::connect( this, SIGNAL(pendingSource()), &loop, SLOT(quit()) );
QObject::connect( this, &PythonConsole::pendingSource, &loop, &QEventLoop::quit);
// application is about to quit
if (loop.exec() != 0) {
PyErr_SetInterrupt();