From 4e70b0d3f5f517929ebd67eee48d6c8ea37b6330 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 25 Jul 2021 02:07:29 -0500 Subject: [PATCH] Add alternating colors for non-Windows to match OpenLP --- slideview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slideview.cpp b/slideview.cpp index 5e2a59f..85401d3 100644 --- a/slideview.cpp +++ b/slideview.cpp @@ -19,6 +19,9 @@ SlideView::SlideView(QWidget *parent): QWidget(parent) { connect(header, &QHeaderView::sectionResized, m_slideTable, &QTableWidget::resizeRowsToContents); m_slideTable->resizeRowsToContents(); m_slideTable->verticalHeader()->setDefaultSectionSize(300); +#ifndef _WIN32 + m_slideTable->setAlternatingRowColors(true); +#endif lyt->addWidget(m_songSelector); lyt->addWidget(m_slideTable); connect(m_slideTable, &QTableWidget::currentCellChanged, this, &SlideView::slideChanged);