Hi,

I've encountered a regression between 4.5 and 4.6. It relates to the use of 
scaled() in the QIcon() statement below:

    for (int i = 0; i < certificates.count(); i++) {
        AroraSSLCertificate *cert = certificates.at(i);
        <snip>
        QIcon image = 
QIcon(QPixmap(QString(QLatin1String(":graphics/ssl/%1"))
                .arg(cert->icon(webPage()-
>certHasPollutedFrame(cert)))).scaled(QSize(16,16)));
        QAction *action = new QAction(image, url, &menu);
        <snip>
        menu.addAction(action);
    }

This worked fine in 4.5, but in 4.6 I find that the 'image' for each action 
is always the one assigned by the first iteration through the loop.

The problem disappears when I get rid of scaled() (an operation which was 
unnecessary in the first place):

        QIcon image = 
QIcon(QPixmap(QString(QLatin1String(":graphics/ssl/%1"))
                .arg(cert->icon(webPage()->certHasPollutedFrame(cert)))));

Apologies for the lack of a ready-made test case but hopefully this will be 
sufficient info to reproduce.
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to