diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2014-03-13 16:35:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-17 14:46:53 +0100 |
commit | 7272efc936354f7771286825e8f3cf82e7bcba46 (patch) | |
tree | 5ec799482070891bb57b1fdf9d726d1e8368c35e /examples/multimedia/audiorecorder | |
parent | 5b4b108d640eb1a6c6e2808eb5da0498bf507432 (diff) |
Correctly update record button in AudioRecorder example.
The record/stop button should have a "Record" text when QMediaRecorder
has the LoadedStatus.
Change-Id: I677845382b24ecf1f2351fc8e1e2e182b2c8d548
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'examples/multimedia/audiorecorder')
-rw-r--r-- | examples/multimedia/audiorecorder/audiorecorder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.cpp b/examples/multimedia/audiorecorder/audiorecorder.cpp index 18ced4d5f..c77396b0f 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.cpp +++ b/examples/multimedia/audiorecorder/audiorecorder.cpp @@ -167,6 +167,7 @@ void AudioRecorder::updateStatus(QMediaRecorder::Status status) statusMessage = tr("Paused"); break; case QMediaRecorder::UnloadedStatus: + case QMediaRecorder::LoadedStatus: clearAudioLevels(); ui->recordButton->setText(tr("Record")); ui->pauseButton->setText(tr("Pause")); |