Use a stylesheet instead of sapcing works better with wordwrap

This commit is contained in:
Kovid Goyal 2022-03-16 11:10:00 +05:30
parent 97e96ddaf9
commit 9ab58a73c6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -355,6 +355,7 @@ class TweaksView(QListView):
self.setAlternatingRowColors(True) self.setAlternatingRowColors(True)
self.setVerticalScrollMode(QAbstractItemView.ScrollMode.ScrollPerPixel) self.setVerticalScrollMode(QAbstractItemView.ScrollMode.ScrollPerPixel)
self.setMinimumWidth(300) self.setMinimumWidth(300)
self.setStyleSheet('QListView::item { padding-top: 0.75ex; padding-bottom: 0.75ex; }')
self.setWordWrap(True) self.setWordWrap(True)
def currentChanged(self, cur, prev): def currentChanged(self, cur, prev):