Changeset 55876 in vbox
- Timestamp:
- May 15, 2015 4:36:20 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
-
Makefile.kmk (modified) (1 diff)
-
src/globals/UIIconPool.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r55821 r55876 822 822 VirtualBox_SOURCES += VirtualBox2.qrc 823 823 VirtualBox2.qrc_RCCFLAGS = -name BASIC2 824 VirtualBox_SOURCES += VirtualBox1_hidpi.qrc 825 VirtualBox1_hidpi.qrc_RCCFLAGS = -name BASIC1_HIDPI 826 VirtualBox_SOURCES += VirtualBox2_hidpi.qrc 827 VirtualBox2_hidpi.qrc_RCCFLAGS = -name BASIC2_HIDPI 824 828 ifeq ($(KBUILD_TARGET),darwin) 825 VirtualBox_SOURCES += VirtualBox1_hidpi.qrc826 VirtualBox1_hidpi.qrc_RCCFLAGS = -name BASIC1_HIDPI827 VirtualBox_SOURCES += VirtualBox2_hidpi.qrc828 VirtualBox2_hidpi.qrc_RCCFLAGS = -name BASIC2_HIDPI829 829 VirtualBox_SOURCES += VirtualBoxMac.qrc 830 830 VirtualBoxMac.qrc_RCCFLAGS = -name MAC -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
r54112 r55876 242 242 /* Test if HiDPI icons are enabled. Works only with a patched version of Qt 4.x 243 243 * with the changes from https://codereview.qt-project.org/#change,54636 applied. */ 244 if (qApp->testAttribute(Qt::AA_UseHighDpiPixmaps)) 245 { 246 /* Parse name to prefix and suffix: */ 247 QString strPrefix = strName.section('.', 0, -2); 248 QString strSuffix = strName.section('.', -1, -1); 249 /* Prepare HiDPI pixmap on the basis of values above: */ 250 QPixmap pixmapHiDPI(strPrefix + "_hidpi." + strSuffix); 251 /* Add HiDPI pixmap (if any): */ 252 if (!pixmapHiDPI.isNull()) 253 icon.addPixmap(pixmapHiDPI, mode, state); 254 } 244 if (!qApp->testAttribute(Qt::AA_UseHighDpiPixmaps)) 245 return; 255 246 # endif /* VBOX_GUI_WITH_HIDPI */ 247 /* Otherwise HiDPI icons are useless: */ 248 return; 256 249 #endif /* Q_WS_MAC */ 250 251 /* Parse name to prefix and suffix: */ 252 QString strPrefix = strName.section('.', 0, -2); 253 QString strSuffix = strName.section('.', -1, -1); 254 /* Prepare HiDPI pixmap on the basis of values above: */ 255 QPixmap pixmapHiDPI(strPrefix + "_hidpi." + strSuffix); 256 /* Add HiDPI pixmap (if any): */ 257 if (!pixmapHiDPI.isNull()) 258 icon.addPixmap(pixmapHiDPI, mode, state); 257 259 } 258 260
Note:
See TracChangeset
for help on using the changeset viewer.

