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:
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
QString toString(QAudioFormat::SampleType sampleType)
|
QString toString(QAudioFormat::SampleType sampleType)
|
||||||
{
|
{
|
||||||
QString result("Unknown");
|
QString result;
|
||||||
switch (sampleType) {
|
switch (sampleType) {
|
||||||
case QAudioFormat::SignedInt:
|
case QAudioFormat::SignedInt:
|
||||||
result = "SignedInt";
|
result = "SignedInt";
|
||||||
@@ -58,7 +58,9 @@ QString toString(QAudioFormat::SampleType sampleType)
|
|||||||
case QAudioFormat::Float:
|
case QAudioFormat::Float:
|
||||||
result = "Float";
|
result = "Float";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
case QAudioFormat::Unknown:
|
case QAudioFormat::Unknown:
|
||||||
|
result = "Unknown";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ symbian {
|
|||||||
TARGET.UID3 = 0xA000D7BE
|
TARGET.UID3 = 0xA000D7BE
|
||||||
CONFIG += qt_example
|
CONFIG += qt_example
|
||||||
}
|
}
|
||||||
|
maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,6 @@ symbian {
|
|||||||
TARGET.CAPABILITY += UserEnvironment
|
TARGET.CAPABILITY += UserEnvironment
|
||||||
CONFIG += qt_example
|
CONFIG += qt_example
|
||||||
}
|
}
|
||||||
|
maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
|
||||||
|
|
||||||
|
maemo5: warning(This example might not fully work on Maemo platform)
|
||||||
|
|||||||
@@ -48,7 +48,11 @@ int main(int argv, char **args)
|
|||||||
app.setApplicationName("Audio Input Test");
|
app.setApplicationName("Audio Input Test");
|
||||||
|
|
||||||
InputTest input;
|
InputTest input;
|
||||||
|
#if defined(Q_OS_SYMBIAN)
|
||||||
|
input.showMaximized();
|
||||||
|
#else
|
||||||
input.show();
|
input.show();
|
||||||
|
#endif
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,3 +14,5 @@ symbian {
|
|||||||
TARGET.UID3 = 0xA000D7C0
|
TARGET.UID3 = 0xA000D7C0
|
||||||
CONFIG += qt_example
|
CONFIG += qt_example
|
||||||
}
|
}
|
||||||
|
maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
|
||||||
|
maemo5: warning(This example might not fully work on Maemo platform)
|
||||||
|
|||||||
@@ -49,7 +49,11 @@ int main(int argv, char **args)
|
|||||||
app.setApplicationName("Audio Output Test");
|
app.setApplicationName("Audio Output Test");
|
||||||
|
|
||||||
AudioTest audio;
|
AudioTest audio;
|
||||||
|
#if defined(Q_OS_SYMBIAN)
|
||||||
|
audio.showMaximized();
|
||||||
|
#else
|
||||||
audio.show();
|
audio.show();
|
||||||
|
#endif
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,3 +19,6 @@ symbian {
|
|||||||
TARGET.UID3 = 0xA000D7C2
|
TARGET.UID3 = 0xA000D7C2
|
||||||
CONFIG += qt_example
|
CONFIG += qt_example
|
||||||
}
|
}
|
||||||
|
maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
|
||||||
|
|
||||||
|
symbian: warning(This example might not fully work on Symbian platform)
|
||||||
|
|||||||
@@ -23,3 +23,6 @@ symbian {
|
|||||||
TARGET.UID3 = 0xA000D7C3
|
TARGET.UID3 = 0xA000D7C3
|
||||||
CONFIG += qt_example
|
CONFIG += qt_example
|
||||||
}
|
}
|
||||||
|
maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
|
||||||
|
|
||||||
|
symbian: warning(This example might not fully work on Symbian platform)
|
||||||
|
|||||||
Reference in New Issue
Block a user