Merge branch 'master' of https://git.bukova.info/repos/git/prodejna
# Conflicts: # shop/receiptsaveform.cpp # shop/shopform.cpp
This commit is contained in:
@@ -30,6 +30,7 @@ ReceiptLoadForm::ReceiptLoadForm(QWidget *parent) :
|
||||
ui->tabVouchers->setColumnWidth(4, 200);
|
||||
|
||||
m_itemModel = new AutoTableModel<VoucherItem>(this);
|
||||
m_itemModel->setCheckboxSelect(true);
|
||||
ui->tabItems->setModel(m_itemModel);
|
||||
ui->tabItems->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||
|
||||
@@ -46,6 +47,16 @@ ReceiptLoadForm::~ReceiptLoadForm()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
QList<VoucherItemPtr> ReceiptLoadForm::selectedItems()
|
||||
{
|
||||
return m_itemModel->selectedItems();
|
||||
}
|
||||
|
||||
VoucherPtr ReceiptLoadForm::selectedVoucher()
|
||||
{
|
||||
return m_voucherModel->itemFromIndex(ui->tabVouchers->currentIndex());
|
||||
}
|
||||
|
||||
void ReceiptLoadForm::on_lineEdit_textChanged(const QString &text)
|
||||
{
|
||||
QSortFilterProxyModel proxy;
|
||||
|
||||
Reference in New Issue
Block a user