mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Update specialwidget.py
This commit is contained in:
parent
2131a3ba24
commit
2b3d7e3133
@ -173,9 +173,8 @@ class ScrollFlow(QWidget):
|
|||||||
self.qscrollarea.setWidgetResizable(True)
|
self.qscrollarea.setWidgetResizable(True)
|
||||||
self.qscrollarea.setWidget(self.listWidget)
|
self.qscrollarea.setWidget(self.listWidget)
|
||||||
self.qscrollarea.scrolled.connect(self.doshowlazywidget)
|
self.qscrollarea.scrolled.connect(self.doshowlazywidget)
|
||||||
|
@trypass
|
||||||
def doshowlazywidget(self,region:QRect):
|
def doshowlazywidget(self,region:QRect):
|
||||||
try:
|
|
||||||
#print(region)
|
|
||||||
for i,widget in enumerate(self.lazyitems):
|
for i,widget in enumerate(self.lazyitems):
|
||||||
if i in self.lazydoneidx:
|
if i in self.lazydoneidx:
|
||||||
continue
|
continue
|
||||||
@ -186,8 +185,6 @@ class ScrollFlow(QWidget):
|
|||||||
self.lazydoneidx.append(i)
|
self.lazydoneidx.append(i)
|
||||||
widget.do()
|
widget.do()
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
except:
|
|
||||||
print_exc()
|
|
||||||
|
|
||||||
def refreshscroll(self):
|
def refreshscroll(self):
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user