Another `int` required
parent
f63a7c497d
commit
999d3efdd7
|
@ -105,7 +105,7 @@ class Edit(QLineEdit):
|
||||||
# TODO: somehow this math ain't right?
|
# TODO: somehow this math ain't right?
|
||||||
chars_w_pxs = dpi_font.boundingRect('0'*self._chars).width()
|
chars_w_pxs = dpi_font.boundingRect('0'*self._chars).width()
|
||||||
scale = round(dpi_font.scale())
|
scale = round(dpi_font.scale())
|
||||||
psh.setWidth(chars_w_pxs * scale)
|
psh.setWidth(int(chars_w_pxs * scale))
|
||||||
return psh
|
return psh
|
||||||
|
|
||||||
def set_width_in_chars(
|
def set_width_in_chars(
|
||||||
|
|
Loading…
Reference in New Issue