Changeset 51474 in vbox for trunk/src/VBox
- Timestamp:
- May 30, 2014 1:30:33 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94060
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r51404 r51474 877 877 $(QUIET)$(SED) \ 878 878 -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' \ 879 880 -e 's;@VBOX_ABOUT_16PX_PNG@;$(VBOX_BRAND_GUI_ABOUT_16PX_PNG);g' \ 880 881 -e 's;@VBOX_VBOX_16PX_PNG@;$(VBOX_BRAND_GUI_VBOX_16PX_PNG);g' \ -
trunk/src/VBox/Frontends/VirtualBox/VirtualBoxBrand.qrc
r50092 r51474 2 2 <qresource prefix="/"> 3 3 <file alias="about.png">@VBOX_ABOUT_PNG@</file> 4 <file alias="about_hidpi.png">@VBOX_ABOUT_HIDPI_PNG@</file> 4 5 <file alias="about_16px.png">@VBOX_ABOUT_16PX_PNG@</file> 5 6 <file alias="VirtualBox_16px.png">@VBOX_VBOX_16PX_PNG@</file> -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
r51403 r51474 33 33 # include "UIConverter.h" 34 34 # include "UIExtraDataManager.h" 35 # include "UIIconPool.h" 35 36 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 36 37 … … 56 57 } 57 58 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); 60 63 61 64 /* Translate: */ … … 66 69 { 67 70 if (pEvent->type() == QEvent::Polish) 68 setFixedSize(m_ bgImage.size());71 setFixedSize(m_size); 69 72 if (pEvent->type() == QEvent::WindowDeactivate) 70 73 close(); … … 75 78 { 76 79 QPainter painter(this); 77 painter.drawPixmap(0, 0, m_ bgImage);80 painter.drawPixmap(0, 0, m_pixmap); 78 81 painter.setFont(font()); 79 82 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h
r34781 r51474 55 55 QString m_strAboutText; 56 56 QString m_strVersion; 57 QPixmap m_bgImage; 57 QPixmap m_pixmap; 58 QSize m_size; 58 59 }; 59 60
Note:
See TracChangeset
for help on using the changeset viewer.