# HG changeset patch # User Chris Cannam # Date 1159970488 0 # Node ID 8c730f49b9b31a72631ed702afeb446527c464a2 # Parent 30d6249005643d3dfc50ae05eb19c3bef14405d1 ... diff -r 30d624900564 -r 8c730f49b9b3 widgets/PluginParameterDialog.cpp --- 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 diff -r 30d624900564 -r 8c730f49b9b3 widgets/PluginParameterDialog.h --- 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();