Squashed commit of the changes from the mobile-examples repository

(4.7-generated-declarative branch).
(cherry picked from commit 539311f7b2687e3148ea695ce06fee768abe7b44)
This commit is contained in:
David Boddie
2011-04-27 19:16:41 +02:00
parent 0db79fb534
commit c5c9450497
8 changed files with 24 additions and 1 deletions

View File

@@ -47,7 +47,7 @@
QString toString(QAudioFormat::SampleType sampleType)
{
QString result("Unknown");
QString result;
switch (sampleType) {
case QAudioFormat::SignedInt:
result = "SignedInt";
@@ -58,7 +58,9 @@ QString toString(QAudioFormat::SampleType sampleType)
case QAudioFormat::Float:
result = "Float";
break;
default:
case QAudioFormat::Unknown:
result = "Unknown";
break;
}
return result;