mirror of
https://github.com/YACReader/yacreader
synced 2025-08-05 05:45:46 -04:00
fixed StyledDelegate completed folder style
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user