summaryrefslogtreecommitdiff
path: root/src/modlistview.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-03 01:50:45 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-03 01:50:45 +0100
commit098ea31a1d848205ffc2a801432b2717aa876d97 (patch)
tree2585b9df2adfc60e12067618d3bca2545a06e9ae /src/modlistview.cpp
parente96a1f3ced974b5d1b02907bf9feabca97d2baa9 (diff)
Update documentation for drawBranches.
Diffstat (limited to 'src/modlistview.cpp')
-rw-r--r--src/modlistview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp
index c2942717..bc6b5a65 100644
--- a/src/modlistview.cpp
+++ b/src/modlistview.cpp
@@ -855,6 +855,12 @@ QRect ModListView::visualRect(const QModelIndex& index) const
void ModListView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const
{
+ // the branches are the small indicator left to the row (there are none in the default style, and
+ // the VS dark style only has background for these)
+ //
+ // the branches are not shifted left with the visualRect() change and since MO2 uses stylesheet,
+ // it is not possible to shift those in the proxy style so we have to shift it here.
+ //
QRect r(rect);
if (hasCollapsibleSeparators() && index.parent().isValid()) {
r.adjust(-indentation(), 0, 0 -indentation(), 0);