Changeset 769 for trunk/examples/multimedia/audiodevices
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/examples/multimedia/audiodevices/audiodevices.cpp
r651 r769 44 44 45 45 #include "audiodevices.h" 46 47 // Utility functions for converting QAudioFormat fields into text 48 49 QString toString(QAudioFormat::SampleType sampleType) 50 { 51 QString result("Unknown"); 52 switch (sampleType) { 53 case QAudioFormat::SignedInt: 54 result = "SignedInt"; 55 break; 56 case QAudioFormat::UnSignedInt: 57 result = "UnSignedInt"; 58 break; 59 case QAudioFormat::Float: 60 result = "Float"; 61 break; 62 } 63 return result; 64 } 65 66 QString toString(QAudioFormat::Endian endian) 67 { 68 QString result("Unknown"); 69 switch (endian) { 70 case QAudioFormat::LittleEndian: 71 result = "LittleEndian"; 72 break; 73 case QAudioFormat::BigEndian: 74 result = "BigEndian"; 75 break; 76 } 77 return result; 78 } 79 46 80 47 81 AudioDevicesBase::AudioDevicesBase(QWidget *parent, Qt::WFlags f) … … 68 102 connect(sampleTypesBox, SIGNAL(activated(int)), SLOT(sampleTypeChanged(int))); 69 103 connect(endianBox, SIGNAL(activated(int)), SLOT(endianChanged(int))); 104 connect(populateTableButton, SIGNAL(clicked()), SLOT(populateTable())); 70 105 71 106 modeBox->setCurrentIndex(0); … … 82 117 { 83 118 // tries to set all the settings picked. 84 logOutput->clear(); 85 logOutput->append("NOTE: an invalid codec audio/test exists for testing, to get a fail condition."); 119 testResult->clear(); 86 120 87 121 if (!deviceInfo.isNull()) { 88 122 if (deviceInfo.isFormatSupported(settings)) { 89 logOutput->append(tr("Success"));123 testResult->setText(tr("Success")); 90 124 nearestFreq->setText(""); 91 125 nearestChannel->setText(""); … … 96 130 } else { 97 131 QAudioFormat nearest = deviceInfo.nearestFormat(settings); 98 logOutput->append(tr("Failed"));132 testResult->setText(tr("Failed")); 99 133 nearestFreq->setText(QString("%1").arg(nearest.frequency())); 100 134 nearestChannel->setText(QString("%1").arg(nearest.channels())); 101 135 nearestCodec->setText(nearest.codec()); 102 136 nearestSampleSize->setText(QString("%1").arg(nearest.sampleSize())); 103 104 switch(nearest.sampleType()) { 105 case QAudioFormat::SignedInt: 106 nearestSampleType->setText("SignedInt"); 107 break; 108 case QAudioFormat::UnSignedInt: 109 nearestSampleType->setText("UnSignedInt"); 110 break; 111 case QAudioFormat::Float: 112 nearestSampleType->setText("Float"); 113 break; 114 case QAudioFormat::Unknown: 115 nearestSampleType->setText("Unknown"); 116 } 117 switch(nearest.byteOrder()) { 118 case QAudioFormat::LittleEndian: 119 nearestEndian->setText("LittleEndian"); 120 break; 121 case QAudioFormat::BigEndian: 122 nearestEndian->setText("BigEndian"); 123 } 137 nearestSampleType->setText(toString(nearest.sampleType())); 138 nearestEndian->setText(toString(nearest.byteOrder())); 124 139 } 125 140 } 126 141 else 127 logOutput->append(tr("No Device"));142 testResult->setText(tr("No Device")); 128 143 } 129 144 130 145 void AudioTest::modeChanged(int idx) 131 146 { 147 testResult->clear(); 148 132 149 // mode has changed 133 150 if (idx == 0) … … 139 156 foreach (const QAudioDeviceInfo &deviceInfo, QAudioDeviceInfo::availableDevices(mode)) 140 157 deviceBox->addItem(deviceInfo.deviceName(), qVariantFromValue(deviceInfo)); 158 159 deviceBox->setCurrentIndex(0); 160 deviceChanged(0); 141 161 } 142 162 143 163 void AudioTest::deviceChanged(int idx) 144 164 { 165 testResult->clear(); 166 145 167 if (deviceBox->count() == 0) 146 168 return; … … 181 203 sampleTypesBox->clear(); 182 204 QList<QAudioFormat::SampleType> sampleTypez = deviceInfo.supportedSampleTypes(); 183 for (int i = 0; i < sampleTypez.size(); ++i) { 184 switch(sampleTypez.at(i)) { 185 case QAudioFormat::SignedInt: 186 sampleTypesBox->addItem("SignedInt"); 187 break; 188 case QAudioFormat::UnSignedInt: 189 sampleTypesBox->addItem("UnSignedInt"); 190 break; 191 case QAudioFormat::Float: 192 sampleTypesBox->addItem("Float"); 193 break; 194 case QAudioFormat::Unknown: 195 sampleTypesBox->addItem("Unknown"); 196 } 197 if (sampleTypez.size()) 198 settings.setSampleType(sampleTypez.at(0)); 199 } 205 206 for (int i = 0; i < sampleTypez.size(); ++i) 207 sampleTypesBox->addItem(toString(sampleTypez.at(i))); 208 if (sampleTypez.size()) 209 settings.setSampleType(sampleTypez.at(0)); 200 210 201 211 endianBox->clear(); 202 212 QList<QAudioFormat::Endian> endianz = deviceInfo.supportedByteOrders(); 203 for (int i = 0; i < endianz.size(); ++i) { 204 switch (endianz.at(i)) { 205 case QAudioFormat::LittleEndian: 206 endianBox->addItem("Little Endian"); 207 break; 208 case QAudioFormat::BigEndian: 209 endianBox->addItem("Big Endian"); 210 break; 211 } 212 } 213 for (int i = 0; i < endianz.size(); ++i) 214 endianBox->addItem(toString(endianz.at(i))); 213 215 if (endianz.size()) 214 216 settings.setByteOrder(endianz.at(0)); 217 218 allFormatsTable->clearContents(); 219 } 220 221 void AudioTest::populateTable() 222 { 223 int row = 0; 224 225 QAudioFormat format; 226 foreach (QString codec, deviceInfo.supportedCodecs()) { 227 format.setCodec(codec); 228 foreach (int frequency, deviceInfo.supportedFrequencies()) { 229 format.setFrequency(frequency); 230 foreach (int channels, deviceInfo.supportedChannels()) { 231 format.setChannels(channels); 232 foreach (QAudioFormat::SampleType sampleType, deviceInfo.supportedSampleTypes()) { 233 format.setSampleType(sampleType); 234 foreach (int sampleSize, deviceInfo.supportedSampleSizes()) { 235 format.setSampleSize(sampleSize); 236 foreach (QAudioFormat::Endian endian, deviceInfo.supportedByteOrders()) { 237 format.setByteOrder(endian); 238 if (deviceInfo.isFormatSupported(format)) { 239 allFormatsTable->setRowCount(row + 1); 240 241 QTableWidgetItem *codecItem = new QTableWidgetItem(format.codec()); 242 allFormatsTable->setItem(row, 0, codecItem); 243 244 QTableWidgetItem *frequencyItem = new QTableWidgetItem(QString("%1").arg(format.frequency())); 245 allFormatsTable->setItem(row, 1, frequencyItem); 246 247 QTableWidgetItem *channelsItem = new QTableWidgetItem(QString("%1").arg(format.channels())); 248 allFormatsTable->setItem(row, 2, channelsItem); 249 250 QTableWidgetItem *sampleTypeItem = new QTableWidgetItem(toString(format.sampleType())); 251 allFormatsTable->setItem(row, 3, sampleTypeItem); 252 253 QTableWidgetItem *sampleSizeItem = new QTableWidgetItem(QString("%1").arg(format.sampleSize())); 254 allFormatsTable->setItem(row, 4, sampleSizeItem); 255 256 QTableWidgetItem *byteOrderItem = new QTableWidgetItem(toString(format.byteOrder())); 257 allFormatsTable->setItem(row, 5, byteOrderItem); 258 259 ++row; 260 } 261 } 262 } 263 } 264 } 265 } 266 } 215 267 } 216 268 -
trunk/examples/multimedia/audiodevices/audiodevices.h
r651 r769 75 75 void endianChanged(int idx); 76 76 void test(); 77 void populateTable(); 78 77 79 }; 78 80 -
trunk/examples/multimedia/audiodevices/audiodevicesbase.ui
r561 r769 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 504</width>10 <height> 702</height>9 <width>679</width> 10 <height>598</height> 11 11 </rect> 12 12 </property> … … 17 17 <layout class="QVBoxLayout" name="verticalLayout"> 18 18 <item> 19 <layout class="QGridLayout" name="gridLayout"> 20 <item row="0" column="0"> 21 <widget class="QLabel" name="deviceLabel"> 22 <property name="sizePolicy"> 23 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 24 <horstretch>1</horstretch> 25 <verstretch>0</verstretch> 26 </sizepolicy> 27 </property> 28 <property name="text"> 29 <string>Device</string> 30 </property> 31 </widget> 32 </item> 33 <item row="0" column="1"> 34 <widget class="QLabel" name="modeLabel"> 35 <property name="text"> 36 <string>Mode</string> 37 </property> 38 </widget> 39 </item> 40 <item row="1" column="0"> 41 <widget class="QComboBox" name="deviceBox"/> 42 </item> 43 <item row="1" column="1"> 44 <widget class="QComboBox" name="modeBox"> 45 <item> 46 <property name="text"> 47 <string>Input</string> 48 </property> 19 <widget class="QScrollArea" name="scrollArea"> 20 <property name="sizePolicy"> 21 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 22 <horstretch>0</horstretch> 23 <verstretch>0</verstretch> 24 </sizepolicy> 25 </property> 26 <property name="widgetResizable"> 27 <bool>true</bool> 28 </property> 29 <widget class="QWidget" name="scrollAreaWidgetContents"> 30 <property name="geometry"> 31 <rect> 32 <x>0</x> 33 <y>0</y> 34 <width>659</width> 35 <height>558</height> 36 </rect> 37 </property> 38 <layout class="QGridLayout" name="gridLayout_4"> 39 <item row="0" column="0"> 40 <layout class="QGridLayout" name="gridLayout_2"> 41 <item row="0" column="0"> 42 <widget class="QLabel" name="modeLabel"> 43 <property name="text"> 44 <string>Mode</string> 45 </property> 46 </widget> 47 </item> 48 <item row="0" column="1"> 49 <widget class="QLabel" name="deviceLabel"> 50 <property name="text"> 51 <string>Device</string> 52 </property> 53 </widget> 54 </item> 55 <item row="1" column="0"> 56 <widget class="QComboBox" name="modeBox"> 57 <item> 58 <property name="text"> 59 <string>Input</string> 60 </property> 61 </item> 62 <item> 63 <property name="text"> 64 <string>Output</string> 65 </property> 66 </item> 67 </widget> 68 </item> 69 <item row="1" column="1"> 70 <widget class="QComboBox" name="deviceBox"/> 71 </item> 72 <item row="2" column="0" colspan="2"> 73 <widget class="QTabWidget" name="tabWidget"> 74 <property name="currentIndex"> 75 <number>0</number> 76 </property> 77 <widget class="QWidget" name="testFormatTab"> 78 <attribute name="title"> 79 <string>Test format</string> 80 </attribute> 81 <layout class="QGridLayout" name="gridLayout"> 82 <item row="0" column="1"> 83 <widget class="QLabel" name="actualLabel"> 84 <property name="sizePolicy"> 85 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 86 <horstretch>0</horstretch> 87 <verstretch>0</verstretch> 88 </sizepolicy> 89 </property> 90 <property name="frameShape"> 91 <enum>QFrame::NoFrame</enum> 92 </property> 93 <property name="frameShadow"> 94 <enum>QFrame::Plain</enum> 95 </property> 96 <property name="text"> 97 <string><i>Actual Settings</i></string> 98 </property> 99 <property name="textFormat"> 100 <enum>Qt::RichText</enum> 101 </property> 102 <property name="alignment"> 103 <set>Qt::AlignCenter</set> 104 </property> 105 </widget> 106 </item> 107 <item row="0" column="2"> 108 <widget class="QLabel" name="nearestLabel"> 109 <property name="sizePolicy"> 110 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 111 <horstretch>0</horstretch> 112 <verstretch>0</verstretch> 113 </sizepolicy> 114 </property> 115 <property name="frameShape"> 116 <enum>QFrame::NoFrame</enum> 117 </property> 118 <property name="frameShadow"> 119 <enum>QFrame::Plain</enum> 120 </property> 121 <property name="text"> 122 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 123 <html><head><meta name="qrichtext" content="1" /><style type="text/css"> 124 p, li { white-space: pre-wrap; } 125 </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> 126 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Nearest Settings</span></p></body></html></string> 127 </property> 128 <property name="textFormat"> 129 <enum>Qt::RichText</enum> 130 </property> 131 <property name="alignment"> 132 <set>Qt::AlignCenter</set> 133 </property> 134 </widget> 135 </item> 136 <item row="3" column="1"> 137 <widget class="QComboBox" name="frequencyBox"> 138 <property name="sizePolicy"> 139 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 140 <horstretch>0</horstretch> 141 <verstretch>0</verstretch> 142 </sizepolicy> 143 </property> 144 </widget> 145 </item> 146 <item row="3" column="2"> 147 <widget class="QLineEdit" name="nearestFreq"> 148 <property name="enabled"> 149 <bool>false</bool> 150 </property> 151 </widget> 152 </item> 153 <item row="5" column="1"> 154 <widget class="QComboBox" name="channelsBox"/> 155 </item> 156 <item row="5" column="2"> 157 <widget class="QLineEdit" name="nearestChannel"> 158 <property name="enabled"> 159 <bool>false</bool> 160 </property> 161 </widget> 162 </item> 163 <item row="9" column="1"> 164 <widget class="QComboBox" name="sampleSizesBox"/> 165 </item> 166 <item row="9" column="2"> 167 <widget class="QLineEdit" name="nearestSampleSize"> 168 <property name="enabled"> 169 <bool>false</bool> 170 </property> 171 </widget> 172 </item> 173 <item row="14" column="1"> 174 <widget class="QComboBox" name="endianBox"/> 175 </item> 176 <item row="14" column="2"> 177 <widget class="QLineEdit" name="nearestEndian"> 178 <property name="enabled"> 179 <bool>false</bool> 180 </property> 181 </widget> 182 </item> 183 <item row="15" column="1"> 184 <widget class="QPushButton" name="testButton"> 185 <property name="text"> 186 <string>Test</string> 187 </property> 188 </widget> 189 </item> 190 <item row="15" column="2"> 191 <widget class="QLabel" name="testResult"> 192 <property name="text"> 193 <string/> 194 </property> 195 </widget> 196 </item> 197 <item row="3" column="0"> 198 <widget class="QLabel" name="actualFreqLabel"> 199 <property name="text"> 200 <string>Frequency (Hz)</string> 201 </property> 202 </widget> 203 </item> 204 <item row="5" column="0"> 205 <widget class="QLabel" name="actualChannelLabel"> 206 <property name="text"> 207 <string>Channels</string> 208 </property> 209 </widget> 210 </item> 211 <item row="9" column="0"> 212 <widget class="QLabel" name="actualSampleSizeLabel"> 213 <property name="text"> 214 <string>Sample size (bits)</string> 215 </property> 216 </widget> 217 </item> 218 <item row="14" column="0"> 219 <widget class="QLabel" name="actualEndianLabel"> 220 <property name="text"> 221 <string>Endianess</string> 222 </property> 223 </widget> 224 </item> 225 <item row="16" column="0" colspan="3"> 226 <widget class="QLabel" name="label"> 227 <property name="sizePolicy"> 228 <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> 229 <horstretch>0</horstretch> 230 <verstretch>0</verstretch> 231 </sizepolicy> 232 </property> 233 <property name="text"> 234 <string>Note: an invalid codec 'audio/test' exists in order to allow an invalid format to be constructed, and therefore to trigger a 'nearest format' calculation.</string> 235 </property> 236 <property name="wordWrap"> 237 <bool>true</bool> 238 </property> 239 </widget> 240 </item> 241 <item row="2" column="0"> 242 <widget class="QLabel" name="actualCodecLabel"> 243 <property name="text"> 244 <string>Codec</string> 245 </property> 246 </widget> 247 </item> 248 <item row="2" column="2"> 249 <widget class="QLineEdit" name="nearestCodec"> 250 <property name="enabled"> 251 <bool>false</bool> 252 </property> 253 </widget> 254 </item> 255 <item row="2" column="1"> 256 <widget class="QComboBox" name="codecsBox"/> 257 </item> 258 <item row="6" column="0"> 259 <widget class="QLabel" name="actualSampleTypeLabel"> 260 <property name="text"> 261 <string>SampleType</string> 262 </property> 263 </widget> 264 </item> 265 <item row="6" column="1"> 266 <widget class="QComboBox" name="sampleTypesBox"/> 267 </item> 268 <item row="6" column="2"> 269 <widget class="QLineEdit" name="nearestSampleType"> 270 <property name="enabled"> 271 <bool>false</bool> 272 </property> 273 </widget> 274 </item> 275 </layout> 276 </widget> 277 <widget class="QWidget" name="tab"> 278 <attribute name="title"> 279 <string>All formats</string> 280 </attribute> 281 <layout class="QVBoxLayout" name="verticalLayout_2"> 282 <item> 283 <widget class="QPushButton" name="populateTableButton"> 284 <property name="text"> 285 <string>Populate table</string> 286 </property> 287 </widget> 288 </item> 289 <item> 290 <widget class="QTableWidget" name="allFormatsTable"> 291 <property name="editTriggers"> 292 <set>QAbstractItemView::NoEditTriggers</set> 293 </property> 294 <property name="dragDropOverwriteMode"> 295 <bool>false</bool> 296 </property> 297 <property name="selectionMode"> 298 <enum>QAbstractItemView::NoSelection</enum> 299 </property> 300 <property name="selectionBehavior"> 301 <enum>QAbstractItemView::SelectItems</enum> 302 </property> 303 <property name="textElideMode"> 304 <enum>Qt::ElideNone</enum> 305 </property> 306 <property name="sortingEnabled"> 307 <bool>false</bool> 308 </property> 309 <property name="wordWrap"> 310 <bool>false</bool> 311 </property> 312 <property name="cornerButtonEnabled"> 313 <bool>false</bool> 314 </property> 315 <attribute name="horizontalHeaderHighlightSections"> 316 <bool>false</bool> 317 </attribute> 318 <attribute name="verticalHeaderVisible"> 319 <bool>false</bool> 320 </attribute> 321 <attribute name="verticalHeaderHighlightSections"> 322 <bool>false</bool> 323 </attribute> 324 <attribute name="verticalHeaderVisible"> 325 <bool>false</bool> 326 </attribute> 327 <attribute name="horizontalHeaderHighlightSections"> 328 <bool>false</bool> 329 </attribute> 330 <attribute name="verticalHeaderHighlightSections"> 331 <bool>false</bool> 332 </attribute> 333 <column> 334 <property name="text"> 335 <string>Codec</string> 336 </property> 337 <property name="textAlignment"> 338 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 339 </property> 340 </column> 341 <column> 342 <property name="text"> 343 <string>Frequency (Hz)</string> 344 </property> 345 <property name="textAlignment"> 346 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 347 </property> 348 </column> 349 <column> 350 <property name="text"> 351 <string>Channels</string> 352 </property> 353 <property name="textAlignment"> 354 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 355 </property> 356 </column> 357 <column> 358 <property name="text"> 359 <string>Sample type</string> 360 </property> 361 <property name="textAlignment"> 362 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 363 </property> 364 </column> 365 <column> 366 <property name="text"> 367 <string>Sample size (bits)</string> 368 </property> 369 <property name="textAlignment"> 370 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 371 </property> 372 </column> 373 <column> 374 <property name="text"> 375 <string>Endianness</string> 376 </property> 377 <property name="textAlignment"> 378 <set>AlignHCenter|AlignVCenter|AlignCenter</set> 379 </property> 380 </column> 381 </widget> 382 </item> 383 </layout> 384 </widget> 385 </widget> 386 </item> 387 </layout> 49 388 </item> 50 <item> 51 <property name="text"> 52 <string>Output</string> 53 </property> 54 </item> 55 </widget> 56 </item> 57 <item row="2" column="0"> 58 <widget class="QLabel" name="actualLabel"> 59 <property name="frameShape"> 60 <enum>QFrame::Panel</enum> 61 </property> 62 <property name="frameShadow"> 63 <enum>QFrame::Raised</enum> 64 </property> 65 <property name="text"> 66 <string>Actual Settings</string> 67 </property> 68 <property name="alignment"> 69 <set>Qt::AlignCenter</set> 70 </property> 71 </widget> 72 </item> 73 <item row="2" column="1"> 74 <widget class="QLabel" name="nearestLabel"> 75 <property name="frameShape"> 76 <enum>QFrame::Panel</enum> 77 </property> 78 <property name="frameShadow"> 79 <enum>QFrame::Raised</enum> 80 </property> 81 <property name="text"> 82 <string>Nearest Settings</string> 83 </property> 84 <property name="alignment"> 85 <set>Qt::AlignCenter</set> 86 </property> 87 </widget> 88 </item> 89 <item row="3" column="0"> 90 <widget class="QLabel" name="actualFreqLabel"> 91 <property name="text"> 92 <string>Frequency</string> 93 </property> 94 </widget> 95 </item> 96 <item row="3" column="1"> 97 <widget class="QLabel" name="nearestFreqLabel"> 98 <property name="text"> 99 <string>Frequency</string> 100 </property> 101 </widget> 102 </item> 103 <item row="4" column="0"> 104 <widget class="QComboBox" name="frequencyBox"/> 105 </item> 106 <item row="4" column="1"> 107 <widget class="QLineEdit" name="nearestFreq"> 108 <property name="enabled"> 109 <bool>false</bool> 110 </property> 111 </widget> 112 </item> 113 <item row="5" column="0"> 114 <widget class="QLabel" name="actualChannelsLabel"> 115 <property name="text"> 116 <string>Channels</string> 117 </property> 118 </widget> 119 </item> 120 <item row="5" column="1"> 121 <widget class="QLabel" name="nearestChannelLabel"> 122 <property name="text"> 123 <string>Channel</string> 124 </property> 125 </widget> 126 </item> 127 <item row="6" column="0"> 128 <widget class="QComboBox" name="channelsBox"/> 129 </item> 130 <item row="6" column="1"> 131 <widget class="QLineEdit" name="nearestChannel"> 132 <property name="enabled"> 133 <bool>false</bool> 134 </property> 135 </widget> 136 </item> 137 <item row="7" column="0"> 138 <widget class="QLabel" name="actualCodecLabel"> 139 <property name="text"> 140 <string>Codecs</string> 141 </property> 142 </widget> 143 </item> 144 <item row="7" column="1"> 145 <widget class="QLabel" name="nearestCodecLabel"> 146 <property name="text"> 147 <string>Codec</string> 148 </property> 149 </widget> 150 </item> 151 <item row="8" column="0"> 152 <widget class="QComboBox" name="codecsBox"/> 153 </item> 154 <item row="8" column="1"> 155 <widget class="QLineEdit" name="nearestCodec"> 156 <property name="enabled"> 157 <bool>false</bool> 158 </property> 159 </widget> 160 </item> 161 <item row="9" column="0"> 162 <widget class="QLabel" name="actualSampleSizeLabel"> 163 <property name="text"> 164 <string>SampleSize</string> 165 </property> 166 </widget> 167 </item> 168 <item row="9" column="1"> 169 <widget class="QLabel" name="nearestSampleSizeLabel"> 170 <property name="text"> 171 <string>SampleSize</string> 172 </property> 173 </widget> 174 </item> 175 <item row="10" column="0"> 176 <widget class="QComboBox" name="sampleSizesBox"/> 177 </item> 178 <item row="10" column="1"> 179 <widget class="QLineEdit" name="nearestSampleSize"> 180 <property name="enabled"> 181 <bool>false</bool> 182 </property> 183 </widget> 184 </item> 185 <item row="11" column="0"> 186 <widget class="QLabel" name="actualSampleTypeLabel"> 187 <property name="text"> 188 <string>SampleType</string> 189 </property> 190 </widget> 191 </item> 192 <item row="11" column="1"> 193 <widget class="QLabel" name="nearestSampleTypeLabel"> 194 <property name="text"> 195 <string>SampleType</string> 196 </property> 197 </widget> 198 </item> 199 <item row="12" column="0"> 200 <widget class="QComboBox" name="sampleTypesBox"/> 201 </item> 202 <item row="12" column="1"> 203 <widget class="QLineEdit" name="nearestSampleType"> 204 <property name="enabled"> 205 <bool>false</bool> 206 </property> 207 </widget> 208 </item> 209 <item row="13" column="0"> 210 <widget class="QLabel" name="actualEndianLabel"> 211 <property name="text"> 212 <string>Endianess</string> 213 </property> 214 </widget> 215 </item> 216 <item row="13" column="1"> 217 <widget class="QLabel" name="nearestEndianLabel"> 218 <property name="text"> 219 <string>Endianess</string> 220 </property> 221 </widget> 222 </item> 223 <item row="14" column="0"> 224 <widget class="QComboBox" name="endianBox"/> 225 </item> 226 <item row="14" column="1"> 227 <widget class="QLineEdit" name="nearestEndian"> 228 <property name="enabled"> 229 <bool>false</bool> 230 </property> 231 </widget> 232 </item> 233 <item row="15" column="0" colspan="2"> 234 <widget class="QTextEdit" name="logOutput"> 235 <property name="enabled"> 236 <bool>false</bool> 237 </property> 238 <property name="minimumSize"> 239 <size> 240 <width>0</width> 241 <height>40</height> 242 </size> 243 </property> 244 </widget> 245 </item> 246 <item row="16" column="0" colspan="2"> 247 <widget class="QPushButton" name="testButton"> 248 <property name="text"> 249 <string>Test</string> 250 </property> 251 </widget> 252 </item> 253 </layout> 389 </layout> 390 </widget> 391 </widget> 254 392 </item> 255 393 </layout> -
trunk/examples/multimedia/audiodevices/main.cpp
r651 r769 50 50 51 51 AudioTest audio; 52 #ifdef Q_OS_SYMBIAN 53 audio.showMaximized(); 54 #else 52 55 audio.show(); 56 #endif 53 57 54 58 return app.exec();
Note:
See TracChangeset
for help on using the changeset viewer.