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.
24 lines
546 B
C++
24 lines
546 B
C++
#include "temporaryreceiptsaveform.h"
|
|
#include "ui_temporaryreceiptsaveform.h"
|
|
|
|
TemporaryReceiptSaveForm::TemporaryReceiptSaveForm(QSharedPointer<Voucher> voucher, QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::TemporaryReceiptSaveForm)
|
|
{
|
|
ui->setupUi(this);
|
|
m_voucher = voucher;
|
|
m_binder.registerBinding(ui->name);
|
|
m_binder.setData(m_voucher.data());
|
|
}
|
|
|
|
TemporaryReceiptSaveForm::~TemporaryReceiptSaveForm()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void TemporaryReceiptSaveForm::accept()
|
|
{
|
|
m_binder.bindToData();
|
|
QDialog::accept();
|
|
}
|