[Kde-games-devel] Review Request 108606: Add an option to change the row height

Wolfgang Rohdewald wolfgang at rohdewald.de
Sun Jan 27 14:23:44 UTC 2013


Am Sonntag, 27. Januar 2013, 11:49:54 schrieb Ian Simpson:
> Would have liked to prevent the height being set smaller than the font size. I tried to
> figure out how to get hold of the rowHeight spinbox in order to set its minimum value to that
> of the font size when it was changed, but couldn't. Anyone give me a hint?

you can find out the font height, if that helps:

(python code)

fm = QFontMetrics(font)
height = fm.height('text')

-- 
Wolfgang


More information about the kde-games-devel mailing list