Add alternating colors for non-Windows to match OpenLP

This commit is contained in:
Gary Talent 2021-07-25 02:07:29 -05:00
parent 47b13bf1e9
commit 4e70b0d3f5

View File

@ -19,6 +19,9 @@ SlideView::SlideView(QWidget *parent): QWidget(parent) {
connect(header, &QHeaderView::sectionResized, m_slideTable, &QTableWidget::resizeRowsToContents); connect(header, &QHeaderView::sectionResized, m_slideTable, &QTableWidget::resizeRowsToContents);
m_slideTable->resizeRowsToContents(); m_slideTable->resizeRowsToContents();
m_slideTable->verticalHeader()->setDefaultSectionSize(300); m_slideTable->verticalHeader()->setDefaultSectionSize(300);
#ifndef _WIN32
m_slideTable->setAlternatingRowColors(true);
#endif
lyt->addWidget(m_songSelector); lyt->addWidget(m_songSelector);
lyt->addWidget(m_slideTable); lyt->addWidget(m_slideTable);
connect(m_slideTable, &QTableWidget::currentCellChanged, this, &SlideView::slideChanged); connect(m_slideTable, &QTableWidget::currentCellChanged, this, &SlideView::slideChanged);