mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
cdac737925
commit
7ed2fde778
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue