checks-parser/outputdialog.cpp

16 lines
421 B
C++

#include "outputdialog.h"
#include "ui_outputdialog.h"
#include <iostream>
#include <QMainWindow>
#include "check/check.h"
OutputDialog::OutputDialog(QWidget *parent, Check check)
: QDialog(parent), ui(new Ui::OutputDialog) {
ui->setupUi(this);
for (auto goods : check.get_goods()) {
std::cout << "From dialog:" << goods.get_name() << std::endl;
}
}
OutputDialog::~OutputDialog() { delete ui; }