VirtualBox

儲存庫 vbox 的更動 67628


忽略:
時間撮記:
2017-6-27 上午09:54:19 (7 年 以前)
作者:
vboxsync
訊息:

FE/Qt: bugref:8901: Selector UI: Tools pane: Snapshot pane: Fix console warning about scaling null pixmap.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotDetailsWidget.cpp

    r67582 r67628  
    10591059        const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize);
    10601060        const QSize thumbnailSize = QSize(iIconMetric * 4, iIconMetric * 4);
     1061        const QPixmap pixThumbnail = m_pixmapScreenshot.isNull() ? m_pixmapScreenshot
     1062                                   : m_pixmapScreenshot.scaled(thumbnailSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
    10611063        m_details.value(DetailsElementType_Preview)->document()->addResource(
    1062             QTextDocument::ImageResource, QUrl("details://thumbnail"),
    1063             QVariant(m_pixmapScreenshot.scaled(thumbnailSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)));
     1064            QTextDocument::ImageResource, QUrl("details://thumbnail"), QVariant(pixThumbnail));
    10641065    }
    10651066    else
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette