aboutsummaryrefslogtreecommitdiff
path: root/preview_thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'preview_thread.py')
-rw-r--r--preview_thread.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/preview_thread.py b/preview_thread.py
index 7a7e619..b20e9a1 100644
--- a/preview_thread.py
+++ b/preview_thread.py
@@ -55,11 +55,9 @@ class Worker(QtCore.QObject):
frame = Image.new("RGBA", (width, height),(0,0,0,255))
frame.paste(im)
-
- componentWidgets = [self.stackedWidget.widget(i) for i in range(self.stackedWidget.count())]
components = nextPreviewInformation["components"]
- for component, componentWidget in zip(components, componentWidgets):
- newFrame = Image.alpha_composite(frame,component.previewRender(self, componentWidget))
+ for component in components:
+ newFrame = Image.alpha_composite(frame,component.previewRender(self))
frame = Image.alpha_composite(frame,newFrame)
self._image = ImageQt(frame)