Changeset 105480 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 24, 2024 1:16:55 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r104673 r105480 55 55 #include "UIVirtualMachineItemLocal.h" 56 56 #include "UITools.h" 57 #if def VBOX_WS_MAC57 #if defined(VBOX_WS_MAC) && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) 58 58 # include "UIIconPool.h" 59 59 # include "UIVersion.h" 60 #endif 60 #endif /* VBOX_WS_MAC && (RT_ARCH_ARM64 || RT_ARCH_ARM32) */ 61 61 #ifndef VBOX_WS_MAC 62 62 # include "UIMenuBar.h" 63 63 #endif 64 65 /* COM includes: */ 66 #if defined(VBOX_WS_MAC) && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) 67 # include "CSystemProperties.h" 68 #endif /* VBOX_WS_MAC && (RT_ARCH_ARM64 || RT_ARCH_ARM32) */ 64 69 65 70 … … 681 686 m_pToolBar->setContextMenuPolicy(Qt::CustomContextMenu); 682 687 m_pToolBar->setUseTextLabels(true); 683 #ifdef VBOX_WS_MAC 684 /* Branding stuff for Qt6 beta: */ 688 689 #if defined(VBOX_WS_MAC) && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) 690 /* Branding stuff for macOS ARM platform: */ 685 691 if (UIVersionInfo::showBetaLabel()) 686 692 { 687 m_pToolBar->emulateMacToolbar(); 688 m_pToolBar->enableBranding(UIIconPool::iconSet(":/explosion_hazard_32px.png"), 689 "Dev Preview", // do we need to make it NLS? 690 QColor(246, 179, 0), 691 74 /* width of BETA label */); 693 /* Check whether we should show Dev Preview tag: */ 694 bool fShowDevPreviewTag = false; 695 const CVirtualBox comVBox = gpGlobalSession->virtualBox(); 696 if (comVBox.isNotNull()) 697 { 698 const CSystemProperties comSystemProps = comVBox.GetSystemProperties(); 699 if (comVBox.isOk() && comSystemProps.isNotNull()) 700 fShowDevPreviewTag = 701 comSystemProps.GetSupportedPlatformArchitectures().contains(KPlatformArchitecture_x86); 702 } 703 /* Enable Dev Preview tag: */ 704 if (fShowDevPreviewTag) 705 { 706 m_pToolBar->emulateMacToolbar(); 707 m_pToolBar->enableBranding(UIIconPool::iconSet(":/explosion_hazard_32px.png"), 708 "Dev Preview", // do we need to make it NLS? 709 QColor(246, 179, 0), 710 74 /* width of BETA label */); 711 } 692 712 } 693 #endif /* VBOX_WS_MAC */713 #endif /* VBOX_WS_MAC && (RT_ARCH_ARM64 || RT_ARCH_ARM32) */ 694 714 695 715 /* Add toolbar into layout: */
Note:
See TracChangeset
for help on using the changeset viewer.