Browse Source

Code style
CURA-1676

fieldOfView 8 years ago
parent
commit
0c23c26ac9
1 changed files with 5 additions and 6 deletions
  1. 5 6
      cura/CuraSplashScreen.py

+ 5 - 6
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()