Compare commits

...

2 commits

2 changed files with 4 additions and 4 deletions

View file

@ -20,20 +20,19 @@ QVariant BasketModel::data(const QModelIndex& index, int role) const
{ {
if (role == Qt::FontRole) { if (role == Qt::FontRole) {
QFont myFont; QFont myFont;
myFont.setPointSize(14);
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
myFixedFont.setPointSize(14);
switch (index.column()) { switch (index.column()) {
case 0: case 0:
[[fallthrough]]; [[fallthrough]];
case 1: case 1:
myFixedFont.setPointSize(11);
return myFixedFont; return myFixedFont;
case 2: case 2:
myFixedFont.setPointSize(myFixedFont.pointSize() + 3);
return myFixedFont; return myFixedFont;
case 3: case 3:
myFixedFont.setPointSize(myFixedFont.pointSize() + 3);
return myFixedFont; return myFixedFont;
} }
} }

View file

@ -161,9 +161,10 @@ void ReportDialog::onPrintReportButtonClicked()
(static_cast<double>(numArticlesSold) / static_cast<double>(numArticlesOffered)) * 100; (static_cast<double>(numArticlesSold) / static_cast<double>(numArticlesOffered)) * 100;
content += QString("Registrierte Verkäufer: %1\n").arg(sellers.size() - 1, 6); content += QString("Registrierte Verkäufer: %1\n").arg(sellers.size() - 1, 6);
content += QString("Angelieferte Artikel: %1\n").arg(numArticlesOffered, 6); content += QString("Angelieferte Artikel: %1\n").arg(numArticlesOffered, 6);
content += QString("Verkaufte Artikel: %1 (%L2 %)\n\n") content += QString("Verkaufte Artikel: %1 (%L2 %)\n")
.arg(numArticlesSold, 6) .arg(numArticlesSold, 6)
.arg(percentArticlesSold, 0, 'f', 2); .arg(percentArticlesSold, 0, 'f', 2);
content += QString("Anzahl Kunden: %1\n\n").arg(market_->getSales().size(), 6);
content += QString("Gesamtumsatz: %1\n").arg(market_->getOverallSumAsString().c_str(), 10); content += QString("Gesamtumsatz: %1\n").arg(market_->getOverallSumAsString().c_str(), 10);
content += content +=
QString("Ausgezahlt: %1\n") QString("Ausgezahlt: %1\n")