From 9f0e70a4e0d57b0979330bb1f0301517b65c8ae8 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 12 Dec 2010 11:45:44 +0100 Subject: Mark local files Show files present on filesystem in Qt::darkBlue. --- filestreemodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 8fd9e31..f81711d 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -199,6 +199,11 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{ } return QColor(Qt::green); } + if(index.column() == FileName){ + if(item->data(DvdNo) == -1){ + return QColor(Qt::darkBlue); + } + } } if(role == Qt::FontRole){ if(index.column() == Md5Sum){ -- cgit v1.2.3-70-g09d2