Scroll pixels instead of columns horizontally

This commit is contained in:
RumovZ 2021-05-21 18:59:53 +02:00
parent 3d4cf26758
commit d46fe913a5

View File

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