<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Bastien Nocera a &eacute;crit&nbsp;:
<blockquote cite="mid:1220004209.3229.73.camel@cookie.hadess.net"
 type="cite">
  <pre wrap="">On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">      &lt;arg type="i" name="size_x" direction="in" /&gt;
      &lt;arg type="i" name="size_y" direction="in" /&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
In the libgnomeui API, you only set one of those, and aspect ratio is
preserved. The size passed is the maximum width and height.
  </pre>
</blockquote>
Well, we can have the Qt approach here :<br>
keep width and height, and add a third parameter which is PreserveRatio
(actually in Qt there are three possibilities : keep ratio, don't keep
ratio and extend, see <a class="moz-txt-link-freetext" href="http://doc.trolltech.com/4.4/qpixmap.html#scaled">http://doc.trolltech.com/4.4/qpixmap.html#scaled</a>
).<br>
<br>
Cheers<br>
Adrien<br>
<br>
<blockquote cite="mid:1220004209.3229.73.camel@cookie.hadess.net"
 type="cite">
  <pre wrap="">
_______________________________________________
xdg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/xdg">http://lists.freedesktop.org/mailman/listinfo/xdg</a>
  </pre>
</blockquote>
<br>
</body>
</html>