File kpageview_width.patch of Package kwidgetsaddons
From: Fabian Vogt <fabian@ritter-vogt.de>
Subject: Avoid scrollbars if possible
Somehow 25px is not enough for vertical scrollbars with breeze 5.8.
With this patch, there are no horizontal scrollbars needed anymore
in systemsettings5.
Index: kwidgetsaddons-5.32.0/src/kpageview_p.cpp
===================================================================
--- kwidgetsaddons-5.32.0.orig/src/kpageview_p.cpp
+++ kwidgetsaddons-5.32.0/src/kpageview_p.cpp
@@ -141,7 +141,7 @@ void KPageListView::updateWidth()
width = qMax(width, sizeHintForIndex(model()->index(i, 0)).width());
}
- setFixedWidth(width + 25);
+ setFixedWidth(width + 32);
}
/**
@@ -182,7 +182,7 @@ void KPageTreeView::updateWidth()
width = qMax(width, sizeHintForColumn(i));
}
- setFixedWidth(width + 25);
+ setFixedWidth(width + 32);
}
void KPageTreeView::expandItems(const QModelIndex &index)