Replaced QMediaRecorderControl::play/stop/pause with setState
This allows to introduce new states without breaking BC. Change-Id: I03c064cec92d6745b251a51cfb301e7f01f4b765 Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
b7935a84d7
commit
b36e2f5209
@@ -841,7 +841,7 @@ void QMediaRecorder::record()
|
||||
d->errorString = QString();
|
||||
|
||||
if (d->control)
|
||||
d->control->record();
|
||||
d->control->setState(RecordingState);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -857,7 +857,7 @@ void QMediaRecorder::pause()
|
||||
{
|
||||
Q_D(QMediaRecorder);
|
||||
if (d->control)
|
||||
d->control->pause();
|
||||
d->control->setState(PausedState);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -870,7 +870,7 @@ void QMediaRecorder::stop()
|
||||
{
|
||||
Q_D(QMediaRecorder);
|
||||
if (d->control)
|
||||
d->control->stop();
|
||||
d->control->setState(StoppedState);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user