- 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

@@ -50,7 +50,7 @@ class PreviewListDelegate: public QAbstractItemDelegate {
char tmp[MAX_CHAR_TMP];
float progress;
// set text color
QVariant value = index.data(Qt::TextColorRole);
QVariant value = index.data(Qt::ForegroundRole);
if (value.isValid() && qvariant_cast<QColor>(value).isValid()){
opt.palette.setColor(QPalette::Text, qvariant_cast<QColor>(value));
}