<div dir="ltr"><div><div><div><div>In Clock::prepareFont() (kde-workspace/plasma/generic/applets/digital-clock/clock.cpp) I find the following code<br><br>tmpRect = fm.boundingRect(rect, flags, text);<br><br></div>which extracts the bounding rect of the given text written using the given font. I do not understand why the function requires a QRect as input. The documentation says:<br>
<br>"The drawing, and hence the bounding rectangle, is constrained to the rectangle rect."<br><br></div>What does it mean? That the output rectangle cannot be smaller than the given? Bigger?<br></div><br>Since the prepareFont() code loops decreasing the font until it fits the given rect I would say that the output rect cannot be smaller than the given one. Someone can confirm it or explain?<br>
<br></div>Thanks!<br><div><div><div><div><div><br><br clear="all"><div><div dir="ltr"><div>Leonardo Giordani<br></div>Author of <a href="http://lgiordani.github.com" target="_blank">The Digital Cat</a><br>My profile on <a href="http://about.me/leonardo.giordani" target="_blank">About.me</a><br>
</div></div>
</div></div></div></div></div></div>