Small code cleanup on the CylindersModel

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-11-21 23:38:28 -02:00 committed by Dirk Hohndel
parent cdac737925
commit 7ed2fde778

View file

@ -92,14 +92,8 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const
case Qt::FontRole: { case Qt::FontRole: {
QFont font = defaultModelFont(); QFont font = defaultModelFont();
switch (index.column()) { switch (index.column()) {
case START: case START: font.setItalic(!cyl->start.mbar); break;
if (!cyl->start.mbar) case END: font.setItalic(!cyl->end.mbar); break;
font.setItalic(true);
break;
case END:
if (!cyl->end.mbar)
font.setItalic(true);
break;
} }
ret = font; ret = font;
break; break;