Merge pull request #1185 from RumovZ/scrolling

Scroll pixels instead of columns horizontally
This commit is contained in:
Damien Elmes 2021-05-22 10:59:09 +10:00 committed by GitHub
commit 195c41cba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,8 @@ class Table:
self._view.selectionModel().selectionChanged, self.browser.onRowChanged
)
self._view.setWordWrap(False)
self._view.setHorizontalScrollMode(QAbstractItemView.ScrollPerPixel)
self._view.horizontalScrollBar().setSingleStep(10)
self._update_font()
if not theme_manager.night_mode:
self._view.setStyleSheet(