Enable building the documentation snippets.

Change-Id: Ib7ef5a564408092ecd72be5d855b2defaddf9c4e
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
Michael Goddard
2012-01-11 14:45:11 +10:00
committed by Qt by Nokia
parent b48009ce9e
commit 39e6da8f8e
5 changed files with 34 additions and 33 deletions

View File

@@ -38,12 +38,17 @@
**
****************************************************************************/
//! [0]
QSound::play("mysounds/bells.wav");
//! [0]
#include "qsound.h"
void qsoundsnippet() {
//! [0]
QSound::play("mysounds/bells.wav");
//! [0]
//! [1]
QSound bells("mysounds/bells.wav");
bells.play();
//! [1]
//! [1]
QSound bells("mysounds/bells.wav");
bells.play();
//! [1]
}