From 990ba6751375a11f7c56691014910865ad9108af Mon Sep 17 00:00:00 2001 From: Harald Fernengel <harald@trolltech.com> Date: Mon, 13 Jul 2009 16:06:39 +0200 Subject: [PATCH] Fixes: Do not change the default color RevBy: hjk Details: Make it work on dark backgrounds by letting the palette decide which default color to display. --- src/plugins/debugger/watchhandler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 1aab5ebc60a..5230c8c8573 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -642,12 +642,9 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const case Qt::ForegroundRole: { static const QVariant red(QColor(200, 0, 0)); - static const QVariant black(QColor(0, 0, 0)); static const QVariant gray(QColor(140, 140, 140)); switch (idx.column()) { - case 0: return black; - case 1: return data.valuedisabled ? gray : data.changed ? red : black; - case 2: return black; + case 1: return data.valuedisabled ? gray : data.changed ? red : QVariant(); } break; } -- GitLab