changeset 148:4e7980e3b48e

* Handle plugins with weird block size requirements properly
author Chris Cannam
date Wed, 20 Sep 2006 15:47:16 +0000
parents e2ad3543c8a1
children 3dade4b025b7
files widgets/PluginParameterDialog.cpp
diffstat 1 files changed, 22 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.cpp	Wed Sep 20 14:50:40 2006 +0000
+++ b/widgets/PluginParameterDialog.cpp	Wed Sep 20 15:47:16 2006 +0000
@@ -275,29 +275,29 @@
                 this, SLOT(blockSizeComboChanged(QString)));
         windowLayout->addWidget(blockSizeCombo, 0, 1);
 
+        windowLayout->addWidget(new QLabel(tr("Window increment:")), 1, 0);
+        
+        QComboBox *incrementCombo = new QComboBox;
+        incrementCombo->setEditable(true);
+        found = false;
+        for (int i = 0; i < 14; ++i) {
+            int val = pow(2, i + 3);
+            incrementCombo->addItem(QString("%1").arg(val));
+            if (val == increment) {
+                incrementCombo->setCurrentIndex(i);
+                found = true;
+            }
+        }
+        if (!found) {
+            incrementCombo->addItem(QString("%1").arg(increment));
+            incrementCombo->setCurrentIndex(incrementCombo->count() - 1);
+        }
+        incrementCombo->setValidator(new QIntValidator(1, pow(2, 18), this));
+        connect(incrementCombo, SIGNAL(textChanged(QString)),
+                this, SLOT(incrementComboChanged(QString)));
+        windowLayout->addWidget(incrementCombo, 1, 1);
+        
         if (showFrequencyDomainOptions) {
-
-            windowLayout->addWidget(new QLabel(tr("Window increment:")), 1, 0);
-        
-            QComboBox *incrementCombo = new QComboBox;
-            incrementCombo->setEditable(true);
-            found = false;
-            for (int i = 0; i < 14; ++i) {
-                int val = pow(2, i + 3);
-                incrementCombo->addItem(QString("%1").arg(val));
-                if (val == increment) {
-                    incrementCombo->setCurrentIndex(i);
-                    found = true;
-                }
-            }
-            if (!found) {
-                incrementCombo->addItem(QString("%1").arg(increment));
-                incrementCombo->setCurrentIndex(incrementCombo->count() - 1);
-            }
-            incrementCombo->setValidator(new QIntValidator(1, pow(2, 18), this));
-            connect(incrementCombo, SIGNAL(textChanged(QString)),
-                    this, SLOT(incrementComboChanged(QString)));
-            windowLayout->addWidget(incrementCombo, 1, 1);
             
             windowLayout->addWidget(new QLabel(tr("Window shape:")), 2, 0);
             WindowTypeSelector *windowTypeSelector = new WindowTypeSelector;