Change from old style connects to function pointers

This commit is contained in:
Bart De Vries 2021-05-28 16:49:55 +02:00
parent 4d4859a698
commit 858601aec3
1 changed files with 4 additions and 4 deletions

View File

@ -482,8 +482,8 @@ void AudioManagerPrivate::prepareAudioStream()
QTimer timer;
timer.setSingleShot(true);
timer.setInterval(2000);
loop.connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
loop.connect(&m_player, SIGNAL(seekableChanged(bool)), &loop, SLOT(quit()));
loop.connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
loop.connect(&m_player, &QMediaPlayer::seekableChanged, &loop, &QEventLoop::quit);
// qDebug() << "Starting waiting loop";
loop.exec();
}
@ -492,8 +492,8 @@ void AudioManagerPrivate::prepareAudioStream()
QTimer timer;
timer.setSingleShot(true);
timer.setInterval(2000);
loop.connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
loop.connect(&m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), &loop, SLOT(quit()));
loop.connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
loop.connect(&m_player, &QMediaPlayer::mediaStatusChanged, &loop, &QEventLoop::quit);
// qDebug() << "Starting waiting loop on media status" << d->m_player.mediaStatus();
loop.exec();
} // qDebug() << "Changing position";