Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2016-07-03 17:01:57 +0300
committerfieldOfView <aldo@fieldofview.com>2016-07-03 17:01:57 +0300
commit0c23c26ac91b7bcdccfa7525686e8317bcaa14f9 (patch)
treef0f85a9a389710e82b2a730c0f3d967d69b2fe78 /cura/CuraSplashScreen.py
parentcfad7996f2e600ce06ee879fcf3918e21a2e218a (diff)
Code style
CURA-1676
Diffstat (limited to 'cura/CuraSplashScreen.py')
-rw-r--r--cura/CuraSplashScreen.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/cura/CuraSplashScreen.py b/cura/CuraSplashScreen.py
index 3f24502bcd..1df2c39da7 100644
--- a/cura/CuraSplashScreen.py
+++ b/cura/CuraSplashScreen.py
@@ -25,14 +25,13 @@ class CuraSplashScreen(QSplashScreen):
if buildtype:
version[0] += " (%s)" %(buildtype)
- used_font = QFont() # Using system-default font here
- used_font.setPointSize(20)
- painter.setFont(used_font)
+ font = QFont() # Using system-default font here
+ font.setPointSize(20)
+ painter.setFont(font)
painter.drawText(0, 0, 330 * self._scale, 230 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[0])
if len(version) > 1:
- used_font = QFont() # Using system-default font here
- used_font.setPointSize(12)
- painter.setFont(used_font)
+ font.setPointSize(12)
+ painter.setFont(font)
painter.drawText(0, 0, 330 * self._scale, 255 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[1])
painter.restore()