mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -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:
|
if buildtype:
|
||||||
version[0] += " (%s)" %(buildtype)
|
version[0] += " (%s)" %(buildtype)
|
||||||
|
|
||||||
used_font = QFont() # Using system-default font here
|
font = QFont() # Using system-default font here
|
||||||
used_font.setPointSize(20)
|
font.setPointSize(20)
|
||||||
painter.setFont(used_font)
|
painter.setFont(font)
|
||||||
painter.drawText(0, 0, 330 * self._scale, 230 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[0])
|
painter.drawText(0, 0, 330 * self._scale, 230 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[0])
|
||||||
if len(version) > 1:
|
if len(version) > 1:
|
||||||
used_font = QFont() # Using system-default font here
|
font.setPointSize(12)
|
||||||
used_font.setPointSize(12)
|
painter.setFont(font)
|
||||||
painter.setFont(used_font)
|
|
||||||
painter.drawText(0, 0, 330 * self._scale, 255 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[1])
|
painter.drawText(0, 0, 330 * self._scale, 255 * self._scale, Qt.AlignHCenter | Qt.AlignBottom, version[1])
|
||||||
|
|
||||||
painter.restore()
|
painter.restore()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue