support files over 2 GB

This commit is contained in:
2021-10-28 18:37:10 +02:00
parent ee338c45ad
commit 999008e46e
2 changed files with 38 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ from PyQt6.QtGui import *
from PyQt6.QtGui import QMouseEvent
from PyQt6.QtWidgets import *
from ScaledScrollBar import ScaledScrollBar
from highlight import Highlight
from highlight_regex import HighlightRegex
from highlight_selection import HighlightSelection
@@ -80,7 +81,7 @@ class BigText(QWidget):
self.h_scroll_bar.setMaximum(1)
self.h_scroll_bar.valueChanged.connect(big_text.h_scroll_event)
self.v_scroll_bar = QScrollBar()
self.v_scroll_bar = ScaledScrollBar()
self.v_scroll_bar.setPageStep(1)
self.v_scroll_bar.valueChanged.connect(big_text.v_scroll_event)