diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-04-27 21:42:15 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-04-27 21:42:15 (GMT) |
commit | 6857fd7b99ba0c72c2f09cfc7ad38e9df4f0531c (patch) | |
tree | 1c695319c22417a406b298860c59fe507a012354 /src/multimedia | |
parent | 113fe7369e0eaeb6a77d97e3d73cedb062c21abb (diff) | |
download | Qt-6857fd7b99ba0c72c2f09cfc7ad38e9df4f0531c.zip Qt-6857fd7b99ba0c72c2f09cfc7ad38e9df4f0531c.tar.gz Qt-6857fd7b99ba0c72c2f09cfc7ad38e9df4f0531c.tar.bz2 |
update multimedia qml element doc samples
Reviewed-by:Derick Hawcroft
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/mediaservices/effects/qsoundeffect.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/multimedia/mediaservices/effects/qsoundeffect.cpp b/src/multimedia/mediaservices/effects/qsoundeffect.cpp index 1992ee5..3537566 100644 --- a/src/multimedia/mediaservices/effects/qsoundeffect.cpp +++ b/src/multimedia/mediaservices/effects/qsoundeffect.cpp @@ -64,17 +64,19 @@ QT_BEGIN_NAMESPACE import Qt 4.7 import Qt.multimedia 4.7 - Item { + Text { + text: "Click Me!"; + font.pointSize: 24; + width: 150; height: 50; + SoundEffect { id: playSound - source: "test.wav" + source: "soundeffect.wav" } MouseArea { id: playArea anchors.fill: parent - onPressed: { - playSound.play() - } + onPressed: { playSound.play() } } } \endqml |