summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/audioinput
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 15:37:50 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 17:57:46 (GMT)
commit34236413600c8142d626c460fd4af97072054fa4 (patch)
tree2ce2af49d3b899a1db0c317457f30d1ab3002637 /examples/multimedia/audioinput
parent14c280f706c5612f6e01f5d6677cc85c88df7eb7 (diff)
downloadQt-34236413600c8142d626c460fd4af97072054fa4.zip
Qt-34236413600c8142d626c460fd4af97072054fa4.tar.gz
Qt-34236413600c8142d626c460fd4af97072054fa4.tar.bz2
Update suspend/resume button label in audio input example
When the mode is toggled, playback is always started, even if the audio input device was previously suspended. The label on the suspend/resume button must therefore be updated. Reviewed-by: trustme
Diffstat (limited to 'examples/multimedia/audioinput')
-rw-r--r--examples/multimedia/audioinput/audioinput.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/multimedia/audioinput/audioinput.cpp b/examples/multimedia/audioinput/audioinput.cpp
index fbf4dc4..18b5ba1 100644
--- a/examples/multimedia/audioinput/audioinput.cpp
+++ b/examples/multimedia/audioinput/audioinput.cpp
@@ -263,6 +263,8 @@ void InputTest::toggleMode()
pullMode = true;
audioInput->start(audioinfo);
}
+
+ button2->setText("Click To Suspend");
}
void InputTest::toggleSuspend()