fieldOfView 8 лет назад
Родитель
Сommit
0c23c26ac9
1 измененных файлов с 5 добавлено и 6 удалено
  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()