From 800a17e483a3672507cea89a9decb9fee82c72f5 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 24 Jul 2015 19:35:31 +0200 Subject: [PATCH] Force black text color on deck list; fix #1289 --- cockatrice/src/decklistmodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cockatrice/src/decklistmodel.cpp b/cockatrice/src/decklistmodel.cpp index 039db364..3b04bf06 100644 --- a/cockatrice/src/decklistmodel.cpp +++ b/cockatrice/src/decklistmodel.cpp @@ -108,6 +108,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const int color = 90 + 60 * node->depth(); return QBrush(QColor(color, 255, color)); } + case Qt::ForegroundRole: { + return QBrush(QColor(0 ,0 ,0)); + } default: return QVariant(); } } else { @@ -125,6 +128,9 @@ QVariant DeckListModel::data(const QModelIndex &index, int role) const int color = 255 - (index.row() % 2) * 30; return QBrush(QColor(color, color, color)); } + case Qt::ForegroundRole: { + return QBrush(QColor(0 ,0 ,0)); + } default: return QVariant(); } }