Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
#include <reporting/reportdialog.h>
|
||||
#include <reporting/variablefiller.h>
|
||||
|
||||
#include "shop-odb.hxx"
|
||||
|
||||
PaydVouchersDialog::PaydVouchersDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::PaydVouchersDialog)
|
||||
@@ -56,7 +54,10 @@ PaydVouchersDialog::PaydVouchersDialog(QWidget *parent) :
|
||||
|
||||
connect(ui->tableVouchers->selectionModel(), &QItemSelectionModel::currentRowChanged, [this, &srv](const QModelIndex ¤t, const QModelIndex &) {
|
||||
QSharedPointer<Voucher> voucher = m_voucherModel->itemFromIndex(current);
|
||||
srv.loadItems(voucher);
|
||||
if (voucher->items().isEmpty()) {
|
||||
srv.load(voucher);
|
||||
}
|
||||
|
||||
m_itemModel->setData(voucher->items());
|
||||
ui->total->setText(QString::number(voucher->totalPrice().toDouble(), 'f', 2));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user