- Improved a lot the download list delegate

- Replaced Qt::TextColorRole by Qt::ForegroundRole because it is deprecated
This commit is contained in:
Christophe Dumez 2007-07-31 10:39:03 +00:00
parent 0561206d91
commit b0f3cdad5d
10 changed files with 32 additions and 53 deletions

View file

@ -479,7 +479,7 @@ void properties::updateInfos(){
// Set the color of a row in data model
void properties::setRowColor(int row, QString color){
for(int i=0; i<PropListModel->columnCount(); ++i){
PropListModel->setData(PropListModel->index(row, i), QVariant(QColor(color)), Qt::TextColorRole);
PropListModel->setData(PropListModel->index(row, i), QVariant(QColor(color)), Qt::ForegroundRole);
}
}