diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-12-17 17:36:37 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-12-17 17:36:37 +0000 |
| commit | b753db2ec5fde8cf317d48b7e8714698d0fb9815 (patch) | |
| tree | f88783ce6b98835b75c3813ceda625a2e8f01d98 /src/plugins/Ui/skinned/listwidgetdrawer.cpp | |
| parent | dca49c95f3bb55bfb1931c4b9532b919a000ef19 (diff) | |
| download | qmmp-b753db2ec5fde8cf317d48b7e8714698d0fb9815.tar.gz qmmp-b753db2ec5fde8cf317d48b7e8714698d0fb9815.tar.bz2 qmmp-b753db2ec5fde8cf317d48b7e8714698d0fb9815.zip | |
skinned: fixed single column mode
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7787 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/listwidgetdrawer.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/listwidgetdrawer.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/listwidgetdrawer.cpp b/src/plugins/Ui/skinned/listwidgetdrawer.cpp index cea4fb1dd..0418f9938 100644 --- a/src/plugins/Ui/skinned/listwidgetdrawer.cpp +++ b/src/plugins/Ui/skinned/listwidgetdrawer.cpp @@ -265,8 +265,12 @@ void ListWidgetDrawer::drawTrack(QPainter *painter, ListWidgetRow *row, bool rtl painter->setPen(row->flags & ListWidgetRow::CURRENT ? m_current : m_normal); QString number = QString("%1").arg(row->number); painter->drawText(sx + m_padding, sy, number); - painter->setPen(m_normal); - painter->drawLine(sx, row->rect.top(), sx, row->rect.bottom() + 1); + if(m_show_splitters) + { + painter->setPen(m_alternate_splitter_color ? m_current : m_normal); + painter->drawLine(sx, row->rect.top(), sx, row->rect.bottom() + 1); + painter->setPen(m_normal); + } } sx -= m_metrics->width(row->titles[0]); @@ -342,8 +346,12 @@ void ListWidgetDrawer::drawTrack(QPainter *painter, ListWidgetRow *row, bool rtl painter->setPen(row->flags & ListWidgetRow::CURRENT ? m_current : m_normal); QString number = QString("%1").arg(row->number); painter->drawText(sx - m_padding - m_metrics->width(number), sy, number); - painter->setPen(m_normal); - painter->drawLine(sx, row->rect.top(), sx, row->rect.bottom() + 1); + if(m_show_splitters) + { + painter->setPen(m_alternate_splitter_color ? m_current : m_normal); + painter->drawLine(sx, row->rect.top(), sx, row->rect.bottom() + 1); + painter->setPen(m_normal); + } } painter->setPen(row->flags & ListWidgetRow::CURRENT ? m_current : m_normal); |
