diff options
Diffstat (limited to 'smtreemodel.cpp')
-rw-r--r-- | smtreemodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smtreemodel.cpp b/smtreemodel.cpp index 50a55d0..86d2b77 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -7,6 +7,7 @@ #include <QIcon> #include <QSettings> +#include <QBrush> #include "smtreemodel.h" #include "smtreeitem.h" @@ -107,6 +108,10 @@ QVariant SmTreeModel::data(const QModelIndex &index, int role) const{ return mDecorationIcon; } } + if(role == Qt::ForegroundRole){ + QColor fgCol = item->foregroundColor().value<QColor>(); + return QBrush(fgCol); + } return QVariant(); } |