Update an obsolete Qt::ItemDataRole

This commit is contained in:
Justin Clift
2016-08-11 14:02:55 +01:00
parent aa2fe17fda
commit 538116c97b

View File

@@ -231,7 +231,7 @@ QVariant SqliteTableModel::data(const QModelIndex &index, int role) const
if(m_data.at(index.row()).at(index.column()).isNull() || isBinary(index))
font.setItalic(true);
return font;
} else if(role == Qt::TextColorRole) {
} else if(role == Qt::ForegroundRole) {
if(m_data.at(index.row()).at(index.column()).isNull())
return QColor(PreferencesDialog::getSettingsValue("databrowser", "null_fg_colour").toString());
else if (isBinary(index))