VirtualBox

Changeset 40350 in vbox


Ignore:
Timestamp:
Mar 5, 2012 12:16:49 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: New VM Wizard: Strict warning-icon size to 64p, scale if necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r40245 r40350  
    186186
    187187    /* Register 'message-box-warning-icon' image in m_pPage1Text1 as 'image': */
    188     m_pPage1Text1->registerImage(UIIconPool::defaultIcon(UIIconPool::MessageBoxWarningIcon).pixmap(256, 256).toImage(), "image");
     188    QSize wSize(64, 64);
     189    QPixmap wPixmap = UIIconPool::defaultIcon(UIIconPool::MessageBoxWarningIcon).pixmap(wSize);
     190    if (wPixmap.width() != wSize.width())
     191        wPixmap = wPixmap.scaled(wSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
     192    QImage wImage = wPixmap.toImage();
     193    m_pPage1Text1->registerImage(wImage, "image");
    189194
    190195    /* Prepare table template: */
Note: See TracChangeset for help on using the changeset viewer.

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