@@ -88,11 +88,11 @@ Process::Process()
88
88
, mDebug(false )
89
89
{
90
90
mProcess ->setProcessChannelMode (QProcess::SeparateChannels);
91
- connect (mProcess , SIGNAL ( readyReadStandardError ()) , this , SLOT ( readyReadStandardError ()) );
92
- connect (mProcess , SIGNAL ( readyReadStandardOutput ()) , this , SLOT ( readyReadStandardOutput ()) );
93
- connect (mProcess , SIGNAL ( finished ( int , QProcess::ExitStatus)), this , SLOT ( finished ( int , QProcess::ExitStatus)) );
94
- connect (mProcess , SIGNAL ( error (QProcess::ProcessError)), this , SLOT ( error (QProcess::ProcessError)) );
95
- connect (mProcess , SIGNAL ( finished ( int , QProcess::ExitStatus)), qApp, SLOT ( quit ()) );
91
+ connect (mProcess , &QProcess:: readyReadStandardError, this , &Process:: readyReadStandardError);
92
+ connect (mProcess , &QProcess:: readyReadStandardOutput, this , &Process:: readyReadStandardOutput);
93
+ connect (mProcess , ( void (QProcess::*)( int , QProcess::ExitStatus))&QProcess::finished , this , &Process::finished );
94
+ connect (mProcess , ( void (QProcess::*)(QProcess:: ProcessError))&QProcess::error , this , &Process::error );
95
+ connect (mProcess , ( void (QProcess::*)( int , QProcess::ExitStatus))&QProcess::finished , qApp, &QCoreApplication:: quit);
96
96
97
97
if (pipe2 (pipefd, O_CLOEXEC) != 0 )
98
98
qWarning (" Could not create pipe" );
@@ -238,7 +238,7 @@ void Process::incomingConnection(int i)
238
238
239
239
void Process::setSocketNotifier (QSocketNotifier *s)
240
240
{
241
- connect (s, SIGNAL ( activated ( int )) , this , SLOT ( incomingConnection ( int )) );
241
+ connect (s, &QSocketNotifier:: activated, this , &Process:: incomingConnection);
242
242
}
243
243
244
244
void Process::setConfig (const Config &config)
0 commit comments