Changeset 106032 in vbox
- Timestamp:
- Sep 12, 2024 1:01:39 PM (3 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIVersion.cpp
r104055 r106032 211 211 bool UIVersionInfo::isBeta() 212 212 { 213 #if defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)214 return true;215 #else216 213 return vboxVersionString().contains(QRegularExpression("BETA|ALPHA", QRegularExpression::CaseInsensitiveOption)); 217 #endif218 214 } 219 215 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r105480 r106032 688 688 689 689 #if defined(VBOX_WS_MAC) && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) 690 /* Branding stuff for macOS ARM platform: */ 691 if (UIVersionInfo::showBetaLabel()) 690 /* Check whether we should show Dev Preview tag: */ 691 bool fShowDevPreviewTag = false; 692 const CVirtualBox comVBox = gpGlobalSession->virtualBox(); 693 if (comVBox.isNotNull()) 692 694 { 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 } 695 const CSystemProperties comSystemProps = comVBox.GetSystemProperties(); 696 if (comVBox.isOk() && comSystemProps.isNotNull()) 697 fShowDevPreviewTag = 698 comSystemProps.GetSupportedPlatformArchitectures().contains(KPlatformArchitecture_x86); 699 } 700 /* Enable Dev Preview tag: */ 701 if (fShowDevPreviewTag) 702 { 703 m_pToolBar->emulateMacToolbar(); 704 m_pToolBar->enableBranding(UIIconPool::iconSet(":/explosion_hazard_32px.png"), 705 "Dev Preview", // do we need to make it NLS? 706 QColor(246, 179, 0), 707 74 /* width of BETA label */); 712 708 } 713 709 #endif /* VBOX_WS_MAC && (RT_ARCH_ARM64 || RT_ARCH_ARM32) */
Note:
See TracChangeset
for help on using the changeset viewer.