mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +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: {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue