mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Merge pull request #1185 from RumovZ/scrolling
Scroll pixels instead of columns horizontally
This commit is contained in:
commit
195c41cba3
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue