20 #include "FdDialogPrintOptions.hpp"
21 #include "../data/FdModelCoa.hpp"
22 #include "../data/FdItemCoa.hpp"
29 QList<FdItemCoa_p> accounts = coa->
accounts();
30 accountsWidget->setRowCount(accounts.size());
31 accountsWidget->setColumnCount(2);
32 accountsWidget->setColumnWidth(0, 50);
33 accountsWidget->horizontalHeader()->setResizeMode(1, QHeaderView::Stretch);
35 for(
int i = 0; i < accounts.size(); ++i)
37 accountsWidget->setItem(i, 0,
new QTableWidgetItem(accounts[i]->
id()));
38 accountsWidget->setItem(i, 1,
new QTableWidgetItem(accounts[i]->label()));
40 accountsWidget->selectAll();
55 elements.insert(PrintCoa, QString::number(inPrintCoa->checkState()));
56 elements.insert(PrintJournal, QString::number(inPrintJournal->checkState()));
57 elements.insert(PrintResults, QString::number(inPrintResults->checkState()));
58 elements.insert(PrintAccounts, QString::number(inPrintAccounts->checkState()));
60 if(inPrintAccounts->checkState())
62 QList<QTableWidgetItem*> items = accountsWidget->selectedItems();
63 for(
int i = 0; i < items.size()/2; ++i)
64 elements << items[i]->text();