mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Code style
CURA-1676
This commit is contained in:
parent
cfad7996f2
commit
0c23c26ac9
1 changed files with 5 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue