diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-10-04 17:02:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-09 18:01:52 +0200 |
commit | a1cd3c9274789a8735bf5c02094c5c4034992aa6 (patch) | |
tree | 962a8de6c4d0ebc2294ed6f4a458484983f2eb14 /examples/multimedia/audiorecorder/audiorecorder.ui | |
parent | 7c9ff56f2f828410efee049ae01e712dc24aaa77 (diff) |
Improve audiorecorder example.
- Possibility to select channel count
- Show audio level for unsigned integer samples
- Show audio level for each channel
- Correctly set output file location
- Update controls depending on the recorder status (rather than the state)
Change-Id: Ieb08c379bb01a11ce1aa52a9d92ea1f320c87d49
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'examples/multimedia/audiorecorder/audiorecorder.ui')
-rw-r--r-- | examples/multimedia/audiorecorder/audiorecorder.ui | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.ui b/examples/multimedia/audiorecorder/audiorecorder.ui index ff6c2d935..6ea510524 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.ui +++ b/examples/multimedia/audiorecorder/audiorecorder.ui @@ -17,10 +17,10 @@ <layout class="QGridLayout" name="gridLayout_3"> <item row="0" column="0" colspan="3"> <layout class="QGridLayout" name="gridLayout_2"> - <item row="0" column="0"> - <widget class="QLabel" name="label"> + <item row="3" column="0"> + <widget class="QLabel" name="label_4"> <property name="text"> - <string>Input Device:</string> + <string>Sample rate:</string> </property> </widget> </item> @@ -34,8 +34,12 @@ </property> </widget> </item> - <item row="1" column="1"> - <widget class="QComboBox" name="audioCodecBox"/> + <item row="0" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Input Device:</string> + </property> + </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_3"> @@ -47,15 +51,21 @@ <item row="2" column="1"> <widget class="QComboBox" name="containerBox"/> </item> - <item row="3" column="0"> - <widget class="QLabel" name="label_4"> + <item row="3" column="1"> + <widget class="QComboBox" name="sampleRateBox"/> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="audioCodecBox"/> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_5"> <property name="text"> - <string>Sample rate:</string> + <string>Channels:</string> </property> </widget> </item> - <item row="3" column="1"> - <widget class="QComboBox" name="sampleRateBox"/> + <item row="4" column="1"> + <widget class="QComboBox" name="channelsBox"/> </item> </layout> </item> @@ -162,9 +172,8 @@ </property> </widget> </item> - <item row="3" column="1" colspan="-1"> - <widget class="QAudioLevel" name="audioLevel"> - </widget> + <item row="3" column="1" colspan="2"> + <layout class="QVBoxLayout" name="levelsLayout"/> </item> </layout> </widget> |