Skip to content

Commit a222524

Browse files
committed
Fix compilation issue.
- QVariant(Qt::GlobalColor) constructor is private. Using QVariant(QColor) instead, as suggested in QVariant header.
1 parent 006079e commit a222524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ QVariant LibraryTreeItem::data(int column, int role) const
600600
case Qt::ToolTipRole:
601601
return mToolTip;
602602
case Qt::ForegroundRole:
603-
return mIsSaved ? QVariant() : Qt::darkRed;
603+
return mIsSaved ? QVariant() : QColor(Qt::darkRed);
604604
default:
605605
return QVariant();
606606
}

0 commit comments

Comments
 (0)