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: {
QFont font = defaultModelFont();
switch (index.column()) {
case START:
if (!cyl->start.mbar)
font.setItalic(true);
break;
case END:
if (!cyl->end.mbar)
font.setItalic(true);
break;
case START: font.setItalic(!cyl->start.mbar); break;
case END: font.setItalic(!cyl->end.mbar); break;
}
ret = font;
break;