diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-06-13 19:29:07 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-06-13 19:29:07 (GMT) |
commit | 82a5b8000e54384b39c1faa2b7ac870b9c638acf (patch) | |
tree | 5b29ca7383d829482173a76033c5911c3e5d0826 /Source/QtDialog | |
parent | b1c31be668122b23014a7e71be75353f81d157e3 (diff) | |
download | CMake-82a5b8000e54384b39c1faa2b7ac870b9c638acf.zip CMake-82a5b8000e54384b39c1faa2b7ac870b9c638acf.tar.gz CMake-82a5b8000e54384b39c1faa2b7ac870b9c638acf.tar.bz2 |
ENH: instead of solid red for new entries, blend it with the alternating
white/gray (depending on style).
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 31610d7..9a505c3 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -281,8 +281,8 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props) new QStandardItem(key.isEmpty() ? tr("Ungrouped Entries") : key) ); parentItems.append(new QStandardItem()); - parentItems[0]->setData(QBrush(QColor(255,100,100)), Qt::BackgroundColorRole); - parentItems[1]->setData(QBrush(QColor(255,100,100)), Qt::BackgroundColorRole); + parentItems[0]->setData(QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole); + parentItems[1]->setData(QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole); root->appendRow(parentItems); foreach(QCMakeProperty prop, props) @@ -367,8 +367,8 @@ void QCMakeCacheModel::setPropertyData(const QModelIndex& idx1, if(isNew) { - this->setData(idx1, QBrush(QColor(255,100,100)), Qt::BackgroundColorRole); - this->setData(idx2, QBrush(QColor(255,100,100)), Qt::BackgroundColorRole); + this->setData(idx1, QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole); + this->setData(idx2, QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole); } } |