changeset 155:8c730f49b9b3

...
author Chris Cannam
date Wed, 04 Oct 2006 14:01:28 +0000
parents 30d624900564
children b32282fefccd
files widgets/PluginParameterDialog.cpp widgets/PluginParameterDialog.h
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.cpp	Tue Oct 03 14:17:37 2006 +0000
+++ b/widgets/PluginParameterDialog.cpp	Wed Oct 04 14:01:28 2006 +0000
@@ -278,8 +278,8 @@
             blockSizeCombo->setCurrentIndex(blockSizeCombo->count() - 1);
         }
         blockSizeCombo->setValidator(new QIntValidator(1, pow(2, 18), this));
-        connect(blockSizeCombo, SIGNAL(textChanged(QString)),
-                this, SLOT(blockSizeComboChanged(QString)));
+        connect(blockSizeCombo, SIGNAL(editTextChanged(const QString &)),
+                this, SLOT(blockSizeComboChanged(const QString &)));
         windowLayout->addWidget(blockSizeCombo, 0, 1);
 
         windowLayout->addWidget(new QLabel(tr("Window increment:")), 1, 0);
@@ -300,8 +300,8 @@
             incrementCombo->setCurrentIndex(incrementCombo->count() - 1);
         }
         incrementCombo->setValidator(new QIntValidator(1, pow(2, 18), this));
-        connect(incrementCombo, SIGNAL(textChanged(QString)),
-                this, SLOT(incrementComboChanged(QString)));
+        connect(incrementCombo, SIGNAL(editTextChanged(const QString &)),
+                this, SLOT(incrementComboChanged(const QString &)));
         windowLayout->addWidget(incrementCombo, 1, 1);
         
         if (showFrequencyDomainOptions) {
@@ -372,14 +372,14 @@
 }
 
 void
-PluginParameterDialog::blockSizeComboChanged(QString text)
+PluginParameterDialog::blockSizeComboChanged(const QString &text)
 {
     m_blockSize = text.toInt();
     std::cerr << "Block size changed to " << m_blockSize << std::endl;
 }
 
 void
-PluginParameterDialog::incrementComboChanged(QString text)
+PluginParameterDialog::incrementComboChanged(const QString &text)
 {
     m_stepSize = text.toInt();
     //!!! rename increment to step size throughout
--- a/widgets/PluginParameterDialog.h	Tue Oct 03 14:17:37 2006 +0000
+++ b/widgets/PluginParameterDialog.h	Wed Oct 04 14:01:28 2006 +0000
@@ -63,8 +63,8 @@
 
 protected slots:
     void channelComboChanged(int);
-    void blockSizeComboChanged(QString);
-    void incrementComboChanged(QString);
+    void blockSizeComboChanged(const QString &);
+    void incrementComboChanged(const QString &);
     void windowTypeChanged(WindowType type);
     void advancedToggled();