[Cmake-commits] [cmake-commits] clinton committed QCMakeCacheView.cxx 1.34 1.35
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jun 13 15:29:09 EDT 2008
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv31823
Modified Files:
QCMakeCacheView.cxx
Log Message:
ENH: instead of solid red for new entries, blend it with the alternating
white/gray (depending on style).
Index: QCMakeCacheView.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/QCMakeCacheView.cxx,v
retrieving revision 1.34
retrieving revision 1.35
diff -C 2 -d -r1.34 -r1.35
*** QCMakeCacheView.cxx 13 Jun 2008 15:19:53 -0000 1.34
--- QCMakeCacheView.cxx 13 Jun 2008 19:29:07 -0000 1.35
***************
*** 282,287 ****
);
parentItems.append(new QStandardItem());
! parentItems[0]->setData(QBrush(QColor(255,100,100)), Qt::BackgroundColorRole);
! parentItems[1]->setData(QBrush(QColor(255,100,100)), Qt::BackgroundColorRole);
root->appendRow(parentItems);
--- 282,287 ----
);
parentItems.append(new QStandardItem());
! 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);
***************
*** 368,373 ****
if(isNew)
{
! this->setData(idx1, QBrush(QColor(255,100,100)), Qt::BackgroundColorRole);
! this->setData(idx2, QBrush(QColor(255,100,100)), Qt::BackgroundColorRole);
}
}
--- 368,373 ----
if(isNew)
{
! this->setData(idx1, QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole);
! this->setData(idx2, QBrush(QColor(255,100,100,170)), Qt::BackgroundColorRole);
}
}
More information about the Cmake-commits
mailing list