1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00
QXlsx/chartsquestions/mainwindow.cpp

47 lines
1.0 KiB
C++
Raw Normal View History

2018-12-20 15:30:29 +09:00
#include "mainwindow.h"
#include "ui_mainwindow.h"
2018-12-20 15:30:29 +09:00
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
2018-12-20 15:30:29 +09:00
{
ui->setupUi(this);
QObject::connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(generator()));
2018-12-20 15:30:29 +09:00
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::generator()
{
sat_calc calc;
calc.generate_report();
/*
int check=0;
if(ui->lineEdit_chrom->text()!="*.txt"&&!ui->lineEdit_chrom->text().isEmpty()){
calc.get_chromatogram(ui->lineEdit_chrom->text());
check+=1;
}
if(!ui->lineEdit_report->text().isEmpty()){
check+=1;
calc.get_report_file(ui->lineEdit_report->text());
}
if(!ui->lineEdit_sheet->text().isEmpty()){
check+=1;
calc.get_sheet_name(ui->lineEdit_sheet->text());
}
if(!ui->lineEdit_prec->text().isEmpty()){
check+=1;
calc.get_precision(ui->lineEdit_prec->text().toDouble());
}
if(4==check)
calc.generate_report();
*/
}