Skip to content

Commit

Permalink
https://github.com/StephaneCouturier/Katalog/issues/382
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed May 27, 2024
1 parent 2ea12ea commit d09cbc8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions src/exploretreeview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ QVariant ExploreTreeView::data(const QModelIndex &index, int role) const
break;
}

case Qt::BackgroundRole:
{
if (1 == index.row() % 2)
return QColor(255, 255, 255);
else
return QColor(247, 247, 247);

break;
}
// case Qt::BackgroundRole:
// {
// if (1 == index.row() % 2)
// return QColor(255, 255, 255);
// else
// return QColor(247, 247, 247);

// break;
// }

}

Expand Down
16 changes: 8 additions & 8 deletions src/filesview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ QVariant FilesView::data(const QModelIndex &index, int role) const
break;
}

case Qt::BackgroundRole:
{
if (1 == index.row() % 2)
return QColor(247, 247, 247);
else
return QColor(255, 255, 255);
break;
}
// case Qt::BackgroundRole:
// {
// if (1 == index.row() % 2)
// return QColor(247, 247, 247);
// else
// return QColor(255, 255, 255);
// break;
// }

}
return QSortFilterProxyModel::data(index, role);
Expand Down

0 comments on commit d09cbc8

Please sign in to comment.