summaryrefslogtreecommitdiffstats
path: root/filestreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r--filestreemodel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp
index 655fc1e..348e536 100644
--- a/filestreemodel.cpp
+++ b/filestreemodel.cpp
@@ -100,6 +100,14 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{
return Qt::AlignRight;
}
}
+ if(role == Qt::ForegroundRole){
+ if(index.column() == SizeDisplay){
+ if(item->data(Size).toLongLong() > Q_INT64_C(2147483648)){
+ return QColor(Qt::red);
+ }
+ return QColor(Qt::green);
+ }
+ }
if(role == FileNameRole){
return item->data(FileName);
}