summaryrefslogtreecommitdiffstats
path: root/smtreeitem.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-12-28 19:36:05 +0100
committerArno <am@disconnect.de>2011-12-28 19:36:05 +0100
commit83d2b014f563b9de387c4d8e9e45adbb36b56825 (patch)
tree09174bbb145df0967dfe4cd11c0cd829b36db51e /smtreeitem.h
parenta18c569e6ffaea7a8a4f387b1c1e4245146e29d8 (diff)
downloadSheMov-83d2b014f563b9de387c4d8e9e45adbb36b56825.tar.gz
SheMov-83d2b014f563b9de387c4d8e9e45adbb36b56825.tar.bz2
SheMov-83d2b014f563b9de387c4d8e9e45adbb36b56825.zip
Mark items in DbAnalyzerDialog
It's now possible to mark items in DbAnalyzerDialog with a different color, when there are no covers or actor information available on the net. I enhanced SmTreeItem to contain a QVariant::foregroundColor, and made SmTreeModel return it when QModelIndex::data with role Qt::ForegroundRole is called. Maybe that could be useful for other things like favorites and such...
Diffstat (limited to 'smtreeitem.h')
-rw-r--r--smtreeitem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/smtreeitem.h b/smtreeitem.h
index 591f2a4..28ab77a 100644
--- a/smtreeitem.h
+++ b/smtreeitem.h
@@ -26,6 +26,8 @@ class SmTreeItem {
void setParent(SmTreeItem *parent);
QVariant data(int column) const;
void setData(int column, const QVariant &data);
+ QVariant foregroundColor() const;
+ void setForegroundColor(const QVariant &data);
bool insertChild(int where, SmTreeItem *child);
bool removeChild(int where, bool deleteChild = true);
@@ -33,6 +35,7 @@ class SmTreeItem {
private:
QList<SmTreeItem*> mChildren;
QList<QVariant> mData;
+ QVariant mForegroundColor;
SmTreeItem *mParent;
};