forked from qt-creator/qt-creator
Debugger: Rename WatchItem::{color->valueColor}
It's the color of the value field, not of the whole item. Change-Id: I1dd63ae21469ec784aefa278d379f819280067d9 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -721,7 +721,7 @@ QString WatchItem::displayType() const
|
||||
return result;
|
||||
}
|
||||
|
||||
QColor WatchItem::color() const
|
||||
QColor WatchItem::valueColor() const
|
||||
{
|
||||
static const QColor red(200, 0, 0);
|
||||
static const QColor gray(140, 140, 140);
|
||||
@@ -783,7 +783,7 @@ QVariant WatchItem::data(int column, int role) const
|
||||
|
||||
case Qt::ForegroundRole:
|
||||
if (column == 1)
|
||||
return color();
|
||||
return valueColor();
|
||||
|
||||
case LocalsExpressionRole:
|
||||
return expression();
|
||||
|
||||
Reference in New Issue
Block a user