code beautifying
This commit is contained in:
parent
d3e56e629d
commit
b9ec6f983e
1 changed files with 4 additions and 2 deletions
|
@ -80,7 +80,7 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
|
||||||
if (role == Qt::FontRole) {
|
if (role == Qt::FontRole) {
|
||||||
QFont myFont;
|
QFont myFont;
|
||||||
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||||
if (myFixedFont.fixedPitch() == false) {
|
if (myFixedFont.fixedPitch() == false) {
|
||||||
myFixedFont.setFamily("monospace");
|
myFixedFont.setFamily("monospace");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,9 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
|
||||||
Article* article = static_cast<Article*>(index.internalPointer());
|
Article* article = static_cast<Article*>(index.internalPointer());
|
||||||
switch (index.column()) {
|
switch (index.column()) {
|
||||||
case 0:
|
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:
|
case 1:
|
||||||
return article->getPriceAsString().c_str();
|
return article->getPriceAsString().c_str();
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Reference in a new issue