mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 07:23:38 -06:00
Add alternating colors for non-Windows to match OpenLP
This commit is contained in:
parent
47b13bf1e9
commit
4e70b0d3f5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user