From 538116c97b9dab60908199b82d4e58a3f8f757ac Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Thu, 11 Aug 2016 14:02:55 +0100 Subject: [PATCH] Update an obsolete Qt::ItemDataRole --- src/sqlitetablemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index be77b755..012f936a 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -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))