diff options
-rw-r--r-- | qt-ui/csvimportdialog.cpp | 16 | ||||
-rw-r--r-- | qt-ui/csvimportdialog.h | 4 |
2 files changed, 6 insertions, 14 deletions
diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp index 5ae4036f5..caafe3562 100644 --- a/qt-ui/csvimportdialog.cpp +++ b/qt-ui/csvimportdialog.cpp @@ -24,6 +24,10 @@ CSVImportDialog::CSVImportDialog(QWidget *parent) : ui->CSVSeparator->addItem("Tab"); ui->knownImports->setCurrentIndex(1); ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); + + connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); + connect(ui->CSVTime, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); + connect(ui->CSVTemperature, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); } CSVImportDialog::~CSVImportDialog() @@ -73,17 +77,7 @@ void CSVImportDialog::on_knownImports_currentIndexChanged(int index) ui->CSVTemperature->blockSignals(false); } -void CSVImportDialog::on_CSVTime_valueChanged(int arg1) -{ - unknownImports(); -} - -void CSVImportDialog::on_CSVDepth_valueChanged(int arg1) -{ - unknownImports(); -} - -void CSVImportDialog::on_CSVTemperature_valueChanged(int arg1) +void CSVImportDialog::unknownImports(int arg1) { unknownImports(); } diff --git a/qt-ui/csvimportdialog.h b/qt-ui/csvimportdialog.h index 057533018..40359a505 100644 --- a/qt-ui/csvimportdialog.h +++ b/qt-ui/csvimportdialog.h @@ -22,10 +22,8 @@ private slots: void on_buttonBox_accepted(); void on_CSVFileSelector_clicked(); void on_knownImports_currentIndexChanged(int index); - void on_CSVTime_valueChanged(int arg1); - void on_CSVDepth_valueChanged(int arg1); - void on_CSVTemperature_valueChanged(int arg1); void on_CSVFile_textEdited(); + void unknownImports(int); private: void unknownImports(); |