diff options
author | Arno <am@disconnect.de> | 2010-07-17 17:43:01 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-07-17 17:43:01 +0200 |
commit | a7a6b1c9f8f718b3082e6cc373459a1eba508848 (patch) | |
tree | 9b78f8735222d5386a8f88b06dd5b57ee510bb70 /filestreemodel.cpp | |
parent | 7be84b2dfb0d300ba03801f43b49364a41ed02f8 (diff) | |
download | SheMov-a7a6b1c9f8f718b3082e6cc373459a1eba508848.tar.gz SheMov-a7a6b1c9f8f718b3082e6cc373459a1eba508848.tar.bz2 SheMov-a7a6b1c9f8f718b3082e6cc373459a1eba508848.zip |
Preparation for new move to burn implementation
Show size of selected items in status bar when files are selected in the
FileView. Also show series name of current selected file in the general
status bar.
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 8 |
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); } |