diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-11-21 23:48:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 15:53:49 -0800 |
commit | 1a0adea0cccd98a1300885e775e6420bd04899fb (patch) | |
tree | 7fd354fb3d4b1a1b55ab2eeec78d202a74b8138b | |
parent | d4563e54a95ebb1c4464e47d9aab36610819bd4b (diff) | |
download | subsurface-1a0adea0cccd98a1300885e775e6420bd04899fb.tar.gz |
Rework csvimportdialog to make room for features
This rewires things a bit to make room for new features coming.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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(); |