Mercurial > hg > svgui
comparison widgets/PluginParameterDialog.cpp @ 545:be5c35d3f409
* solaris build fixes
author | Chris Cannam |
---|---|
date | Thu, 10 Sep 2009 18:44:45 +0000 |
parents | 5f9a257598d8 |
children | 1a0dfcbffaf1 |
comparison
equal
deleted
inserted
replaced
544:1dd2cddc32eb | 545:be5c35d3f409 |
---|---|
421 } | 421 } |
422 if (!found) { | 422 if (!found) { |
423 blockSizeCombo->addItem(QString("%1").arg(size)); | 423 blockSizeCombo->addItem(QString("%1").arg(size)); |
424 blockSizeCombo->setCurrentIndex(blockSizeCombo->count() - 1); | 424 blockSizeCombo->setCurrentIndex(blockSizeCombo->count() - 1); |
425 } | 425 } |
426 blockSizeCombo->setValidator(new QIntValidator(1, int(pow(2, 18)), this)); | 426 blockSizeCombo->setValidator(new QIntValidator(1, int(pow(2., 18)), this)); |
427 connect(blockSizeCombo, SIGNAL(editTextChanged(const QString &)), | 427 connect(blockSizeCombo, SIGNAL(editTextChanged(const QString &)), |
428 this, SLOT(blockSizeComboChanged(const QString &))); | 428 this, SLOT(blockSizeComboChanged(const QString &))); |
429 windowLayout->addWidget(blockSizeCombo, 0, 1); | 429 windowLayout->addWidget(blockSizeCombo, 0, 1); |
430 | 430 |
431 windowLayout->addWidget(new QLabel(tr("Window increment:")), 1, 0); | 431 windowLayout->addWidget(new QLabel(tr("Window increment:")), 1, 0); |
443 } | 443 } |
444 if (!found) { | 444 if (!found) { |
445 incrementCombo->addItem(QString("%1").arg(increment)); | 445 incrementCombo->addItem(QString("%1").arg(increment)); |
446 incrementCombo->setCurrentIndex(incrementCombo->count() - 1); | 446 incrementCombo->setCurrentIndex(incrementCombo->count() - 1); |
447 } | 447 } |
448 incrementCombo->setValidator(new QIntValidator(1, int(pow(2, 18)), this)); | 448 incrementCombo->setValidator(new QIntValidator(1, int(pow(2., 18)), this)); |
449 connect(incrementCombo, SIGNAL(editTextChanged(const QString &)), | 449 connect(incrementCombo, SIGNAL(editTextChanged(const QString &)), |
450 this, SLOT(incrementComboChanged(const QString &))); | 450 this, SLOT(incrementComboChanged(const QString &))); |
451 windowLayout->addWidget(incrementCombo, 1, 1); | 451 windowLayout->addWidget(incrementCombo, 1, 1); |
452 | 452 |
453 if (showFrequencyDomainOptions) { | 453 if (showFrequencyDomainOptions) { |