fixed StyledDelegate completed folder style

This commit is contained in:
Luis Ángel San Martín 2014-11-20 23:18:27 +01:00
parent 5f75d278d4
commit 397761451a

View File

@ -88,7 +88,7 @@ YACReaderFoldersViewItemDeletegate::YACReaderFoldersViewItemDeletegate(QObject *
void YACReaderFoldersViewItemDeletegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const void YACReaderFoldersViewItemDeletegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{ {
if(index.data(FolderModel::CompletedRole).toBool()) if(!index.data(FolderModel::CompletedRole).toBool())
{ {
painter->save(); painter->save();
#ifdef Q_OS_MAC #ifdef Q_OS_MAC