comparison widgets/PluginParameterDialog.cpp @ 249:e6d0b097d102 sv1-1.0rc1

* more compile warning fixes
author Chris Cannam
date Mon, 30 Apr 2007 14:06:45 +0000
parents df791d8c8f58
children 948a3b05798b
comparison
equal deleted inserted replaced
248:28c8e8e3c537 249:e6d0b097d102
190 m_advanced = new QFrame; 190 m_advanced = new QFrame;
191 QVBoxLayout *advancedLayout = new QVBoxLayout; 191 QVBoxLayout *advancedLayout = new QVBoxLayout;
192 advancedLayout->setMargin(0); 192 advancedLayout->setMargin(0);
193 m_advanced->setLayout(advancedLayout); 193 m_advanced->setLayout(advancedLayout);
194 grid->addWidget(m_advanced, 3, 0); 194 grid->addWidget(m_advanced, 3, 0);
195
196 bool haveAdvanced = false;
197 195
198 m_channelBox = new QGroupBox; 196 m_channelBox = new QGroupBox;
199 m_channelBox->setTitle(tr("Channels")); 197 m_channelBox->setTitle(tr("Channels"));
200 advancedLayout->addWidget(m_channelBox); 198 advancedLayout->addWidget(m_channelBox);
201 m_channelBox->setVisible(false); 199 m_channelBox->setVisible(false);
371 369
372 QComboBox *blockSizeCombo = new QComboBox; 370 QComboBox *blockSizeCombo = new QComboBox;
373 blockSizeCombo->setEditable(true); 371 blockSizeCombo->setEditable(true);
374 bool found = false; 372 bool found = false;
375 for (int i = 0; i < 14; ++i) { 373 for (int i = 0; i < 14; ++i) {
376 int val = pow(2, i + 3); 374 int val = 1 << (i + 3);
377 blockSizeCombo->addItem(QString("%1").arg(val)); 375 blockSizeCombo->addItem(QString("%1").arg(val));
378 if (val == size) { 376 if (val == size) {
379 blockSizeCombo->setCurrentIndex(i); 377 blockSizeCombo->setCurrentIndex(i);
380 found = true; 378 found = true;
381 } 379 }
393 391
394 QComboBox *incrementCombo = new QComboBox; 392 QComboBox *incrementCombo = new QComboBox;
395 incrementCombo->setEditable(true); 393 incrementCombo->setEditable(true);
396 found = false; 394 found = false;
397 for (int i = 0; i < 14; ++i) { 395 for (int i = 0; i < 14; ++i) {
398 int val = pow(2, i + 3); 396 int val = 1 << (i + 3);
399 incrementCombo->addItem(QString("%1").arg(val)); 397 incrementCombo->addItem(QString("%1").arg(val));
400 if (val == increment) { 398 if (val == increment) {
401 incrementCombo->setCurrentIndex(i); 399 incrementCombo->setCurrentIndex(i);
402 found = true; 400 found = true;
403 } 401 }