summaryrefslogtreecommitdiffstats
path: root/qt-ui/csvimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-11-21 23:48:36 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 15:53:49 -0800
commit1a0adea0cccd98a1300885e775e6420bd04899fb (patch)
tree7fd354fb3d4b1a1b55ab2eeec78d202a74b8138b /qt-ui/csvimportdialog.cpp
parentd4563e54a95ebb1c4464e47d9aab36610819bd4b (diff)
downloadsubsurface-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>
Diffstat (limited to 'qt-ui/csvimportdialog.cpp')
-rw-r--r--qt-ui/csvimportdialog.cpp16
1 files changed, 5 insertions, 11 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();
}