code beautifying

This commit is contained in:
Martin Brodbeck 2019-04-08 10:48:24 +02:00
parent d3e56e629d
commit b9ec6f983e
1 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,7 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
if (role == Qt::FontRole) {
QFont myFont;
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
if (myFixedFont.fixedPitch() == false) {
if (myFixedFont.fixedPitch() == false) {
myFixedFont.setFamily("monospace");
}
@ -113,7 +113,9 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
Article* article = static_cast<Article*>(index.internalPointer());
switch (index.column()) {
case 0:
return (std::string("Verk. ") + article->getSeller()->getSellerNoAsString() + " (" + article->getCompleteArticleNo() + ")").c_str();
return (std::string("Verk. ") + article->getSeller()->getSellerNoAsString() + " (" +
article->getCompleteArticleNo() + ")")
.c_str();
case 1:
return article->getPriceAsString().c_str();
case 2: