aboutsummaryrefslogtreecommitdiff
path: root/preview_thread.py
diff options
context:
space:
mode:
authorMaximilian Siess2017-04-20 19:01:19 +0200
committerMaximilian Siess2017-04-20 19:01:19 +0200
commit8423d958201f0230f4c4887a4b75f14f54a2161a (patch)
tree6af71206ccee644e3b39419b708dc747fab9f169 /preview_thread.py
parentf639760ffc8f3152b46c32a881303a7522b8daca (diff)
added font size of text in preview
Diffstat (limited to 'preview_thread.py')
-rw-r--r--preview_thread.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/preview_thread.py b/preview_thread.py
index ddb5407..8f759be 100644
--- a/preview_thread.py
+++ b/preview_thread.py
@@ -19,13 +19,14 @@ class Worker(QtCore.QObject):
self.queue = queue
- @pyqtSlot(str, str, QtGui.QFont, str, int, int)
- def createPreviewImage(self, backgroundImage, titleText, titleFont, alignment, xOffset, yOffset):
+ @pyqtSlot(str, str, QtGui.QFont, int, str, int, int)
+ def createPreviewImage(self, backgroundImage, titleText, titleFont, fontSize, alignment, xOffset, yOffset):
# print('worker thread id: {}'.format(QtCore.QThread.currentThreadId()))
dic = {
"backgroundImage": backgroundImage,
"titleText": titleText,
"titleFont": titleFont,
+ "fontSize": fontSize,
"alignment": alignment,
"xoffset": xOffset,
"yoffset": yOffset
@@ -46,6 +47,7 @@ class Worker(QtCore.QObject):
nextPreviewInformation["backgroundImage"],
nextPreviewInformation["titleText"],
nextPreviewInformation["titleFont"],
+ nextPreviewInformation["fontSize"],
nextPreviewInformation["alignment"],
nextPreviewInformation["xoffset"],
nextPreviewInformation["yoffset"])