﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
170	QIcon size selection different Windows vs. OS/2	rudi		"As you can see in the attachments, the ""back"" / ""forward"" buttons in the OS/2 version of the Arora browser are much smaller than in the windows version. The reason for that is that the PNG images for those buttons are available in the resolutions 16,32 and 128px while the ""reload"" image is present in 24 and 32px. The default size of the toolbar buttons in OS/2 is 24px, for which ""back"" and ""forward"" don't have an exact match. However, while our implementation chooses the next smaller pixmap, the Windows version downscales the higher one.

Even though the Windows source is also of version 4.6.2, there
is different code in gui/image/qicon.cpp:

OS/2:

{{{
161	    int b = area(pb->size);
162	
163	    // prefer the largest among smaller
164	    int res = qMax(a,b);
165	    if (res > s) {
166	        // fallback to the smallest among larger
167	        res = qMin(a,b);
168	    }
}}}


Windows:

{{{
    int b = area(pb->size);
    int res = a;
    if (qMin(a,b) >= s)
        res = qMin(a,b);
    else
        res = qMax(a,b);
}}}


"	defect	closed	major	Qt 4.6.3	QtGui	4.6.2	low	wontfix		
