Change from old style connects to function pointers
This commit is contained in:
parent
4d4859a698
commit
858601aec3
@ -482,8 +482,8 @@ void AudioManagerPrivate::prepareAudioStream()
|
|||||||
QTimer timer;
|
QTimer timer;
|
||||||
timer.setSingleShot(true);
|
timer.setSingleShot(true);
|
||||||
timer.setInterval(2000);
|
timer.setInterval(2000);
|
||||||
loop.connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
|
loop.connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
|
||||||
loop.connect(&m_player, SIGNAL(seekableChanged(bool)), &loop, SLOT(quit()));
|
loop.connect(&m_player, &QMediaPlayer::seekableChanged, &loop, &QEventLoop::quit);
|
||||||
// qDebug() << "Starting waiting loop";
|
// qDebug() << "Starting waiting loop";
|
||||||
loop.exec();
|
loop.exec();
|
||||||
}
|
}
|
||||||
@ -492,8 +492,8 @@ void AudioManagerPrivate::prepareAudioStream()
|
|||||||
QTimer timer;
|
QTimer timer;
|
||||||
timer.setSingleShot(true);
|
timer.setSingleShot(true);
|
||||||
timer.setInterval(2000);
|
timer.setInterval(2000);
|
||||||
loop.connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
|
loop.connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
|
||||||
loop.connect(&m_player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), &loop, SLOT(quit()));
|
loop.connect(&m_player, &QMediaPlayer::mediaStatusChanged, &loop, &QEventLoop::quit);
|
||||||
// qDebug() << "Starting waiting loop on media status" << d->m_player.mediaStatus();
|
// qDebug() << "Starting waiting loop on media status" << d->m_player.mediaStatus();
|
||||||
loop.exec();
|
loop.exec();
|
||||||
} // qDebug() << "Changing position";
|
} // qDebug() << "Changing position";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user