mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
zoom
This commit is contained in:
parent
999930f433
commit
06f3a08b9c
@ -795,6 +795,9 @@ class WebivewWidget(abstractwebview):
|
|||||||
def set_zoom(self, zoom):
|
def set_zoom(self, zoom):
|
||||||
self.put_ZoomFactor(zoom)
|
self.put_ZoomFactor(zoom)
|
||||||
|
|
||||||
|
def get_ZoomFactor(self):
|
||||||
|
return winsharedutils.get_ZoomFactor(self.get_controller())
|
||||||
|
|
||||||
def put_ZoomFactor(self, zoom):
|
def put_ZoomFactor(self, zoom):
|
||||||
winsharedutils.put_ZoomFactor(self.get_controller(), zoom)
|
winsharedutils.put_ZoomFactor(self.get_controller(), zoom)
|
||||||
|
|
||||||
|
@ -91,7 +91,9 @@ class TextBrowser(QWidget, dataget):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def calllunaheightchange(self, h):
|
def calllunaheightchange(self, h):
|
||||||
self.contentsChanged.emit(QSize(self.width(), h))
|
self.contentsChanged.emit(
|
||||||
|
QSize(self.width(), h * self.webivewwidget.get_ZoomFactor())
|
||||||
|
)
|
||||||
|
|
||||||
def internalheighchange(self):
|
def internalheighchange(self):
|
||||||
self.testeval(
|
self.testeval(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user