cut names if necessary
This commit is contained in:
parent
a7a83ba3b9
commit
cdc737a823
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ void ReportDialog::onPrintReportButtonClicked()
|
|||
for (unsigned int j = 0; j < ENTRIES_PER_PAGE && (i * j) < sellers.size(); ++j) {
|
||||
content += QString("%1 %2 %3 %4 %5 %6 %7\n")
|
||||
.arg(sellers.at(i * j)->getSellerNo(), 3)
|
||||
.arg(sellers.at(i * j)->getLastName().c_str(), -14)
|
||||
.arg(sellers.at(i * j)->getFirstName().c_str(), -14)
|
||||
.arg(sellers.at(i * j)->getLastName().substr(0, 14).c_str(), -14)
|
||||
.arg(sellers.at(i * j)->getFirstName().substr(0, 14).c_str(), -14)
|
||||
.arg(sellers.at(i * j)->numArticlesOffered(), 9)
|
||||
.arg(sellers.at(i * j)->numArticlesSold(), 8)
|
||||
.arg(sellers.at(i * j)->sumAsString().c_str(), 10)
|
||||
|
|
Loading…
Reference in a new issue