diff options
author | Arno <am@disconnect.de> | 2010-12-27 16:19:10 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-12-27 16:19:10 +0100 |
commit | 6a56c5d5541bd471d78b4797ffccd378c1e73550 (patch) | |
tree | e03b5d2ac7194faf06972af57c0685d3d9961f17 /filestreemodel.cpp | |
parent | 51f830068cb6b4847468aced1aa654932c39bf80 (diff) | |
download | SheMov-6a56c5d5541bd471d78b4797ffccd378c1e73550.tar.gz SheMov-6a56c5d5541bd471d78b4797ffccd378c1e73550.tar.bz2 SheMov-6a56c5d5541bd471d78b4797ffccd378c1e73550.zip |
Configuration option for archived files
Added color selection for archived files to make more clearly which
files aren't present on the filesystem.
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 2e7ad83..f4d045f 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -203,6 +203,8 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{ if(index.column() == FileName){ if(item->data(DvdNo) == -1){ return mLocalColor; + }else if(item->data(DvdNo).toInt() > 0){ + return mArchivedColor; } } } @@ -527,6 +529,8 @@ void FilesTreeModel::readSettings(){ QSettings s; QVariant local = s.value("ui/localcolor", Qt::darkBlue); mLocalColor = local.value<QColor>(); + QVariant archived = s.value("ui/archivedcolor", Qt::black); + mArchivedColor = archived.value<QColor>(); } void FilesTreeModel::populate(QSqlQuery &filesQuery){ |