You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
685 B
C++
37 lines
685 B
C++
#include "importdialog.h"
|
|
#include "ui_importdialog.h"
|
|
#include "importprogress.h"
|
|
#include "csvimporter.h"
|
|
|
|
#include <QFileDialog>
|
|
#include <QApplication>
|
|
//#include <QDesktopWidget>
|
|
|
|
ImportDialog::ImportDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::ImportDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
ImportDialog::~ImportDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
QString ImportDialog::fileName()
|
|
{
|
|
return ui->editFile->text();
|
|
}
|
|
|
|
QString ImportDialog::separator()
|
|
{
|
|
return ui->editSeparator->text();
|
|
}
|
|
|
|
void ImportDialog::on_btnFile_clicked()
|
|
{
|
|
QString file = QFileDialog::getOpenFileName(this, tr("Import file"), "", tr("All Files (*.*)"));
|
|
ui->editFile->setText(file);
|
|
}
|