diff options
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 31 | ||||
-rw-r--r-- | qt-ui/divelogimportdialog.h | 5 |
2 files changed, 12 insertions, 24 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 2a7166a98..79349027d 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -27,16 +27,17 @@ DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : ui->CSVSeparator->addItem(";"); ui->knownImports->setCurrentIndex(1); - 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))); - connect(ui->temperatureCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); - connect(ui->CSVpo2, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); - connect(ui->po2CheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); - connect(ui->CSVcns, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); - connect(ui->cnsCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); - connect(ui->CSVstopdepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports(int))); - connect(ui->stopdepthCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports(bool))); + connect(ui->CSVDepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->CSVTime, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->CSVTemperature, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->temperatureCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports())); + connect(ui->CSVpo2, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->po2CheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports())); + connect(ui->CSVcns, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->cnsCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports())); + connect(ui->CSVstopdepth, SIGNAL(valueChanged(int)), this, SLOT(unknownImports())); + connect(ui->stopdepthCheckBox, SIGNAL(clicked(bool)), this, SLOT(unknownImports())); + connect(ui->CSVSeparator, SIGNAL(currentIndexChanged(int)), this, SLOT(unknownImports())); } DiveLogImportDialog::~DiveLogImportDialog() @@ -97,16 +98,6 @@ void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index) ui->CSVSeparator->blockSignals(false); } -void DiveLogImportDialog::unknownImports(bool arg1) -{ - unknownImports(); -} - -void DiveLogImportDialog::unknownImports(int arg1) -{ - unknownImports(); -} - void DiveLogImportDialog::unknownImports() { ui->knownImports->setCurrentIndex(0); diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index d8cedab6a..7c3779095 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -21,12 +21,9 @@ public: private slots: void on_buttonBox_accepted(); void on_knownImports_currentIndexChanged(int index); - void unknownImports(int); - void unknownImports(bool); - -private: void unknownImports(); +private: bool selector; QStringList fileNames; Ui::DiveLogImportDialog *ui; |