VirtualBox

Changeset 51474 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 30, 2014 1:30:33 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94060
Message:

FE/Qt: Mac OS X: HiDPI: Integrate VirtualBox *about* image.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r51404 r51474  
    877877        $(QUIET)$(SED) \
    878878                -e 's;@VBOX_ABOUT_PNG@;$(VBOX_BRAND_GUI_ABOUT_PNG);g' \
     879                -e 's;@VBOX_ABOUT_HIDPI_PNG@;$(VBOX_BRAND_GUI_ABOUT_HIDPI_PNG);g' \
    879880                -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \
    880881                -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBoxBrand.qrc

    r50092 r51474  
    22 <qresource prefix="/">
    33    <file alias="about.png">@VBOX_ABOUT_PNG@</file>
     4    <file alias="about_hidpi.png">@VBOX_ABOUT_HIDPI_PNG@</file>
    45    <file alias="about_16px.png">@VBOX_ABOUT_16PX_PNG@</file>
    56    <file alias="VirtualBox_16px.png">@VBOX_VBOX_16PX_PNG@</file>
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp

    r51403 r51474  
    3333# include "UIConverter.h"
    3434# include "UIExtraDataManager.h"
     35# include "UIIconPool.h"
    3536#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3637
     
    5657    }
    5758
    58     /* Assign image: */
    59     m_bgImage.load(strPath);
     59    /* Load image: */
     60    QIcon icon = UIIconPool::iconSet(strPath);
     61    m_size = icon.availableSizes().first();
     62    m_pixmap = icon.pixmap(m_size);
    6063
    6164    /* Translate: */
     
    6669{
    6770    if (pEvent->type() == QEvent::Polish)
    68         setFixedSize(m_bgImage.size());
     71        setFixedSize(m_size);
    6972    if (pEvent->type() == QEvent::WindowDeactivate)
    7073        close();
     
    7578{
    7679    QPainter painter(this);
    77     painter.drawPixmap(0, 0, m_bgImage);
     80    painter.drawPixmap(0, 0, m_pixmap);
    7881    painter.setFont(font());
    7982
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h

    r34781 r51474  
    5555    QString m_strAboutText;
    5656    QString m_strVersion;
    57     QPixmap m_bgImage;
     57    QPixmap m_pixmap;
     58    QSize   m_size;
    5859};
    5960
Note: See TracChangeset for help on using the changeset viewer.

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