Changeset 54463 in vbox
- Timestamp:
- Feb 24, 2015 5:55:48 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r54199 r54463 648 648 src/settings/machine/UIMachineSettingsDisplay.cpp \ 649 649 src/settings/machine/UIMachineSettingsGeneral.cpp \ 650 651 650 src/settings/machine/UIMachineSettingsInterface.cpp \ 651 src/settings/machine/UIMachineSettingsNetwork.cpp \ 652 652 src/settings/machine/UIMachineSettingsParallel.cpp \ 653 653 src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp \ … … 684 684 src/widgets/VBoxOSTypeSelectorButton.cpp \ 685 685 src/widgets/UINameAndSystemEditor.cpp \ 686 686 src/widgets/UIWarningPane.cpp \ 687 687 src/widgets/UIFilmContainer.cpp \ 688 688 src/widgets/graphics/UIGraphicsButton.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h
r54272 r54463 94 94 template<> bool canConvert<GuruMeditationHandlerType>(); 95 95 template<> bool canConvert<HiDPIOptimizationType>(); 96 #ifndef Q_WS_MAC 96 97 template<> bool canConvert<MiniToolbarAlignment>(); 98 #endif /* !Q_WS_MAC */ 97 99 98 100 /* Declare COM canConvert specializations: */ … … 178 180 template<> QString toInternalString(const HiDPIOptimizationType &optimizationType); 179 181 template<> HiDPIOptimizationType fromInternalString<HiDPIOptimizationType>(const QString &strOptimizationType); 182 #ifndef Q_WS_MAC 180 183 template<> QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment); 181 184 template<> MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment); 185 #endif /* !Q_WS_MAC */ 182 186 183 187 /* Declare COM conversion specializations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r54459 r54463 65 65 template<> bool canConvert<GuruMeditationHandlerType>() { return true; } 66 66 template<> bool canConvert<HiDPIOptimizationType>() { return true; } 67 #ifndef Q_WS_MAC 67 68 template<> bool canConvert<MiniToolbarAlignment>() { return true; } 69 #endif /* !Q_WS_MAC */ 68 70 69 71 /* QString <= SizeSuffix: */ … … 1453 1455 } 1454 1456 1457 #ifndef Q_WS_MAC 1455 1458 /* QString <= MiniToolbarAlignment: */ 1456 1459 template<> QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment) … … 1481 1484 return values.at(keys.indexOf(QRegExp(strMiniToolbarAlignment, Qt::CaseInsensitive))); 1482 1485 } 1483 1486 #endif /* !Q_WS_MAC */ 1487 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r54459 r54463 127 127 const char* UIExtraDataDefs::GUI_HiDPI_UnscaledOutput = "GUI/HiDPI/UnscaledOutput"; 128 128 const char* UIExtraDataDefs::GUI_HiDPI_Optimization = "GUI/HiDPI/Optimization"; 129 #ifndef Q_WS_MAC 129 130 const char* UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; 130 131 const char* UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide"; 131 132 const char* UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment"; 133 #endif /* !Q_WS_MAC */ 132 134 const char* UIExtraDataDefs::GUI_StatusBar_Enabled = "GUI/StatusBar/Enabled"; 133 135 const char* UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators"; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r54459 r54463 217 217 /** Holds Runtime UI HiDPI optimization type. */ 218 218 extern const char* GUI_HiDPI_Optimization; 219 #ifndef Q_WS_MAC 219 220 /** Holds whether mini-toolbar is enabled for full and seamless screens. */ 220 221 extern const char* GUI_ShowMiniToolBar; … … 223 224 /** Holds mini-toolbar alignment. */ 224 225 extern const char* GUI_MiniToolBarAlignment; 226 #endif /* !Q_WS_MAC */ 225 227 /** Holds Runtime UI status-bar availability status. */ 226 228 extern const char* GUI_StatusBar_Enabled; … … 637 639 }; 638 640 641 #ifndef Q_WS_MAC 639 642 /** Runtime UI: Mini-toolbar alignment. */ 640 643 enum MiniToolbarAlignment … … 643 646 MiniToolbarAlignment_Top 644 647 }; 648 #endif /* !Q_WS_MAC */ 645 649 646 650 #endif /* !___UIExtraDataDefs_h___ */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r54459 r54463 1784 1784 << GUI_HiDPI_UnscaledOutput 1785 1785 << GUI_HiDPI_Optimization 1786 #ifndef Q_WS_MAC 1786 1787 << GUI_ShowMiniToolBar << GUI_MiniToolBarAutoHide << GUI_MiniToolBarAlignment 1788 #endif /* !Q_WS_MAC */ 1787 1789 << GUI_StatusBar_Enabled << GUI_RestrictedStatusBarIndicators << GUI_StatusBar_IndicatorOrder 1788 1790 #ifdef Q_WS_MAC … … 3169 3171 } 3170 3172 3173 #ifndef Q_WS_MAC 3171 3174 bool UIExtraDataManager::miniToolbarEnabled(const QString &strID) 3172 3175 { … … 3214 3217 setExtraDataString(GUI_MiniToolBarAlignment, QString(), strID); 3215 3218 } 3219 #endif /* Q_WS_MAC */ 3216 3220 3217 3221 bool UIExtraDataManager::statusBarEnabled(const QString &strID) -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r54459 r54463 414 414 HiDPIOptimizationType hiDPIOptimizationType(const QString &strID); 415 415 416 #ifndef Q_WS_MAC 416 417 /** Returns whether mini-toolbar is enabled for full and seamless screens. */ 417 418 bool miniToolbarEnabled(const QString &strID); … … 428 429 /** Returns mini-toolbar @a alignment. */ 429 430 void setMiniToolbarAlignment(Qt::AlignmentFlag alignment, const QString &strID); 431 #endif /* Q_WS_MAC */ 430 432 431 433 /** Returns whether Runtime UI status-bar is enabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h
r53050 r54463 36 36 UIVisualElement_VideoCapture = RT_BIT(10), 37 37 UIVisualElement_FeaturesStuff = RT_BIT(11), 38 #ifndef Q_WS_MAC 38 39 UIVisualElement_MiniToolBar = RT_BIT(12), 40 #endif /* !Q_WS_MAC */ 39 41 UIVisualElement_AllStuff = 0xFFFF 40 42 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r54272 r54463 744 744 "Ask transient machine-window #%d to hide.\n", (int)uScreenID)); 745 745 746 /* Make sure mini-toolbar hidden: */747 pMachineWindowFullscreen->setMiniToolbarVisible(false);748 746 /* Make sure window hidden: */ 749 747 pMachineWindow->hide(); … … 757 755 /* Make sure window have proper geometry and shown: */ 758 756 pMachineWindow->showInNecessaryMode(); 759 /* Make sure mini-toolbar shown: */760 pMachineWindowFullscreen->setMiniToolbarVisible(true);761 757 } 762 758 } … … 779 775 setPresentationModeEnabled(true); 780 776 781 /* Make sure mini-toolbar hidden: */782 pMachineWindowFullscreen->setMiniToolbarVisible(false);783 777 /* Make sure window have proper geometry and shown: */ 784 778 pMachineWindow->showInNecessaryMode(); … … 794 788 "Ask machine-window #%d to hide.\n", (int)uScreenID)); 795 789 796 /* Make sure mini-toolbar hidden: */797 pMachineWindowFullscreen->setMiniToolbarVisible(false);798 790 /* Make sure window hidden: */ 799 791 pMachineWindow->hide(); … … 823 815 m_invalidFullscreenMachineWindows << pMachineWindow; 824 816 825 /* Make sure mini-toolbar hidden: */826 pMachineWindowFullscreen->setMiniToolbarVisible(false);827 817 /* Ask window to exit 'fullscreen' mode: */ 828 818 emit sigNotifyAboutNativeFullscreenShouldBeExited(pMachineWindow); … … 837 827 "Ask machine-window #%d to adjust guest geometry.\n", (int)uScreenID)); 838 828 839 /* Make sure mini-toolbar shown: */840 pMachineWindowFullscreen->setMiniToolbarVisible(true);841 829 /* Just adjust machine-view size if necessary: */ 842 830 pMachineWindow->adjustMachineViewSize(); 843 831 return; 844 832 } 845 846 /* Make sure mini-toolbar shown: */847 pMachineWindowFullscreen->setMiniToolbarVisible(true);848 833 } 849 834 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r53068 r54463 49 49 UIMachineWindowFullscreen::UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic, ulong uScreenId) 50 50 : UIMachineWindow(pMachineLogic, uScreenId) 51 #ifndef Q_WS_MAC 51 52 , m_pMiniToolBar(0) 53 #endif /* !Q_WS_MAC */ 52 54 #ifdef Q_WS_MAC 53 55 , m_fIsInFullscreenTransition(false) … … 108 110 } 109 111 } 110 111 void UIMachineWindowFullscreen::setMiniToolbarVisible(bool fVisible)112 {113 /* Make sure mini-toolbar exists: */114 if (!m_pMiniToolBar)115 return;116 /* Set mini-toolbar visibility to passed one: */117 m_pMiniToolBar->setVisible(fVisible);118 }119 112 #endif /* Q_WS_MAC */ 120 113 114 #ifndef Q_WS_MAC 121 115 void UIMachineWindowFullscreen::sltMachineStateChanged() 122 116 { … … 127 121 updateAppearanceOf(UIVisualElement_MiniToolBar); 128 122 } 123 #endif /* !Q_WS_MAC */ 129 124 130 125 #ifdef Q_WS_MAC … … 206 201 setAutoFillBackground(true); 207 202 203 #ifndef Q_WS_MAC 208 204 /* Prepare mini-toolbar: */ 209 205 prepareMiniToolbar(); 206 #endif /* !Q_WS_MAC */ 210 207 211 208 #ifdef Q_WS_MAC … … 237 234 } 238 235 236 #ifndef Q_WS_MAC 239 237 void UIMachineWindowFullscreen::prepareMiniToolbar() 240 238 { … … 249 247 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid())); 250 248 m_pMiniToolBar->addMenus(actionPool()->menus()); 251 #ifdef RT_OS_DARWIN252 connect(machineLogic(), SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)),253 m_pMiniToolBar, SLOT(sltHandle3DOverlayVisibilityChange(bool)));254 #endif /* RT_OS_DARWIN */255 #ifndef RT_OS_DARWIN256 249 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized())); 257 #endif /* !RT_OS_DARWIN */258 250 connect(m_pMiniToolBar, SIGNAL(sigExitAction()), 259 251 actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SLOT(trigger())); 260 #ifdef RT_OS_DARWIN261 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()),262 actionPool()->action(UIActionIndex_M_Application_S_Close), SLOT(trigger()));263 #else /* !RT_OS_DARWIN */264 252 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()), 265 253 actionPool()->action(UIActionIndexRT_M_Machine_S_Close), SLOT(trigger())); 266 #endif /* !RT_OS_DARWIN */267 254 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), 268 255 this, SLOT(sltRevokeFocus()), Qt::QueuedConnection); 269 256 } 270 257 #endif /* !Q_WS_MAC */ 258 259 #ifndef Q_WS_MAC 271 260 void UIMachineWindowFullscreen::cleanupMiniToolbar() 272 261 { … … 281 270 m_pMiniToolBar = 0; 282 271 } 272 #endif /* !Q_WS_MAC *// 283 273 284 274 void UIMachineWindowFullscreen::cleanupVisualState() … … 297 287 #endif /* Q_WS_MAC */ 298 288 289 #ifndef Q_WS_MAC 299 290 /* Cleanup mini-toolbar: */ 300 291 cleanupMiniToolbar(); 292 #endif /* !Q_WS_MAC */ 301 293 302 294 /* Call to base-class: */ … … 364 356 !pFullscreenLogic->hasHostScreenForGuestScreen(m_uScreenId)) 365 357 { 358 #ifndef Q_WS_MAC 366 359 /* If there is mini-toolbar: */ 367 360 if (m_pMiniToolBar) 368 361 { 369 #if defined(Q_WS_WIN) || defined(Q_WS_X11)370 362 /* Just hide mini-toolbar: */ 371 363 m_pMiniToolBar->hide(); 372 #elif defined(Q_WS_MAC)373 /* If no native full-screen used: */374 if (!fSupportsNativeFullScreen)375 {376 /* Just hide mini-toolbar: */377 m_pMiniToolBar->hide();378 }379 #endif /* Q_WS_MAC */380 364 } 365 #endif /* !Q_WS_MAC */ 381 366 /* Hide window: */ 382 367 hide(); … … 433 418 adjustMachineViewSize(); 434 419 420 #ifndef Q_WS_MAC 435 421 /* If there is mini-toolbar: */ 436 422 if (m_pMiniToolBar) 437 423 { 438 # if defined(Q_WS_WIN)424 # if defined(Q_WS_WIN) 439 425 /* Just show mini-toolbar: */ 440 426 m_pMiniToolBar->show(); 441 #elif defined(Q_WS_MAC) 442 /* If no native full-screen used: */ 443 if (!fSupportsNativeFullScreen) 444 { 445 /* Just show mini-toolbar: */ 446 m_pMiniToolBar->show(); 447 } 448 #elif defined(Q_WS_X11) 427 # elif defined(Q_WS_X11) 449 428 /* Allow mini-toolbar to be located on full-screen area: */ 450 429 m_pMiniToolBar->showFullScreen(); … … 457 436 /* Make sure mini-toolbar is always on top of machine-window: */ 458 437 VBoxGlobal::setTransientFor(m_pMiniToolBar, this); 459 #endif /* Q_WS_X11 */ 460 } 438 # endif /* Q_WS_X11 */ 439 } 440 #endif /* !Q_WS_MAC */ 461 441 462 442 /* Make sure machine-view have focus: */ … … 469 449 UIMachineWindow::adjustMachineViewSize(); 470 450 451 #ifndef Q_WS_MAC 471 452 /* If mini-toolbar present: */ 472 453 if (m_pMiniToolBar) 473 454 { 474 455 /* Make sure this window has fullscreen logic: */ 475 UIMachineLogicFullscreen *pFullscreenLogic = qobject_cast<UIMachineLogicFullscreen*>(machineLogic());456 const UIMachineLogicFullscreen *pFullscreenLogic = qobject_cast<UIMachineLogicFullscreen*>(machineLogic()); 476 457 AssertPtrReturnVoid(pFullscreenLogic); 477 458 … … 490 471 #endif /* Q_WS_X11 */ 491 472 } 492 } 493 473 #endif /* !Q_WS_MAC */ 474 } 475 476 #ifndef Q_WS_MAC 494 477 void UIMachineWindowFullscreen::updateAppearanceOf(int iElement) 495 478 { … … 514 497 } 515 498 } 516 499 #endif /* !Q_WS_MAC */ 500 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r52729 r54463 21 21 #include "UIMachineWindow.h" 22 22 23 #ifndef Q_WS_MAC 23 24 /* Forward declarations: */ 24 25 class UIRuntimeMiniToolBar; 26 #endif /* !Q_WS_MAC */ 25 27 26 28 /* Fullscreen machine-window implementation: */ … … 53 55 /** Mac OS X: Returns whether window is in 'fullscreen' transition. */ 54 56 bool isInFullscreenTransition() const { return m_fIsInFullscreenTransition; } 55 /** Mac OS X: Defines whether mini-toolbar should be @a fVisible. */56 void setMiniToolbarVisible(bool fVisible);57 57 #endif /* Q_WS_MAC */ 58 58 59 59 private slots: 60 60 61 #ifndef Q_WS_MAC 61 62 /* Session event-handlers: */ 62 63 void sltMachineStateChanged(); 64 #endif /* !Q_WS_MAC */ 63 65 64 66 #ifdef RT_OS_DARWIN … … 76 78 /* Prepare helpers: */ 77 79 void prepareVisualState(); 80 #ifndef Q_WS_MAC 78 81 void prepareMiniToolbar(); 82 #endif /* !Q_WS_MAC */ 79 83 80 84 /* Cleanup helpers: */ 85 #ifndef Q_WS_MAC 81 86 void cleanupMiniToolbar(); 87 #endif /* !Q_WS_MAC */ 82 88 void cleanupVisualState(); 83 89 … … 89 95 virtual void adjustMachineViewSize(); 90 96 91 /* Update stuff: */ 97 #ifndef Q_WS_MAC 98 /* Update routines: */ 92 99 void updateAppearanceOf(int iElement); 100 #endif /* !Q_WS_MAC */ 93 101 94 /* Widgets: */ 102 #ifndef Q_WS_MAC 103 /** Holds the mini-toolbar instance. */ 95 104 UIRuntimeMiniToolBar *m_pMiniToolBar; 105 #endif /* !Q_WS_MAC */ 96 106 97 107 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r53068 r54463 136 136 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()), 137 137 actionPool()->action(UIActionIndexRT_M_Machine_S_Close), SLOT(trigger())); 138 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), this, SLOT(sltRevokeFocus())); 138 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), 139 this, SLOT(sltRevokeFocus()), Qt::QueuedConnection); 139 140 } 140 141 #endif /* !Q_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r52891 r54463 21 21 #include "UIMachineWindow.h" 22 22 23 #ifndef Q_WS_MAC 23 24 /* Forward declarations: */ 24 25 class UIRuntimeMiniToolBar; 26 #endif /* !Q_WS_MAC */ 25 27 26 28 /* Seamless machine-window implementation: */ … … 80 82 #endif /* VBOX_WITH_MASKED_SEAMLESS */ 81 83 82 /* Widgets: */83 84 #ifndef Q_WS_MAC 85 /** Holds the mini-toolbar instance. */ 84 86 UIRuntimeMiniToolBar *m_pMiniToolBar; 85 87 #endif /* !Q_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
r54285 r54463 1088 1088 #endif /* Q_WS_MAC */ 1089 1089 1090 #ifndef Q_WS_MAC 1090 1091 /* Get mini-toolbar availability status: */ 1091 1092 const QString strMiniToolbarEnabled = localMachine.GetExtraData(UIExtraDataDefs::GUI_ShowMiniToolBar); … … 1123 1124 QApplication::translate("UIGDetails", "Disabled", "details (user interface/mini-toolbar)")); 1124 1125 } 1126 #endif /* !Q_WS_MAC */ 1125 1127 } 1126 1128 else -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r54199 r54463 60 60 #ifdef Q_WS_MAC 61 61 interfaceData.m_fUseUnscaledHiDPIOutput = gEDataManager->useUnscaledHiDPIOutput(m_machine.GetId()); 62 #e ndif /*Q_WS_MAC */62 #else /* !Q_WS_MAC */ 63 63 interfaceData.m_fShowMiniToolBar = gEDataManager->miniToolbarEnabled(m_machine.GetId()); 64 64 interfaceData.m_fMiniToolBarAtTop = gEDataManager->miniToolbarAlignment(m_machine.GetId()) == Qt::AlignTop; 65 #endif /* !Q_WS_MAC */ 65 66 66 67 /* Cache interface data: */ … … 82 83 #ifdef Q_WS_MAC 83 84 m_pCheckBoxUnscaledHiDPIOutput->setChecked(interfaceData.m_fUseUnscaledHiDPIOutput); 84 #e ndif /*Q_WS_MAC */85 #else /* !Q_WS_MAC */ 85 86 m_pCheckBoxShowMiniToolBar->setChecked(interfaceData.m_fShowMiniToolBar); 86 87 m_pComboToolBarAlignment->setChecked(interfaceData.m_fMiniToolBarAtTop); 88 #endif /* !Q_WS_MAC */ 87 89 88 90 /* Polish page finally: */ … … 104 106 #ifdef Q_WS_MAC 105 107 interfaceData.m_fUseUnscaledHiDPIOutput = m_pCheckBoxUnscaledHiDPIOutput->isChecked(); 106 #e ndif /*Q_WS_MAC */108 #else /* !Q_WS_MAC */ 107 109 interfaceData.m_fShowMiniToolBar = m_pCheckBoxShowMiniToolBar->isChecked(); 108 110 interfaceData.m_fMiniToolBarAtTop = m_pComboToolBarAlignment->isChecked(); 111 #endif /* !Q_WS_MAC */ 109 112 110 113 /* Cache interface data: */ … … 131 134 #ifdef Q_WS_MAC 132 135 gEDataManager->setUseUnscaledHiDPIOutput(interfaceData.m_fUseUnscaledHiDPIOutput, m_machine.GetId()); 133 #e ndif /*Q_WS_MAC */136 #else /* !Q_WS_MAC */ 134 137 gEDataManager->setMiniToolbarEnabled(interfaceData.m_fShowMiniToolBar, m_machine.GetId()); 135 138 gEDataManager->setMiniToolbarAlignment(interfaceData.m_fMiniToolBarAtTop ? Qt::AlignTop : Qt::AlignBottom, m_machine.GetId()); 139 #endif /* !Q_WS_MAC */ 136 140 } 137 141 } … … 169 173 m_pLabelHiDPI->setEnabled(isMachineInValidMode()); 170 174 m_pCheckBoxUnscaledHiDPIOutput->setEnabled(isMachineInValidMode()); 175 m_pLabelMiniToolBar->hide(); 176 m_pCheckBoxShowMiniToolBar->hide(); 177 m_pComboToolBarAlignment->hide(); 171 178 #else /* !Q_WS_MAC */ 172 179 m_pLabelHiDPI->hide(); 173 180 m_pCheckBoxUnscaledHiDPIOutput->hide(); 174 #endif /* !Q_WS_MAC */175 181 m_pLabelMiniToolBar->setEnabled(isMachineInValidMode()); 176 182 m_pCheckBoxShowMiniToolBar->setEnabled(isMachineInValidMode()); 177 183 m_pComboToolBarAlignment->setEnabled(isMachineInValidMode() && m_pCheckBoxShowMiniToolBar->isChecked()); 184 #endif /* !Q_WS_MAC */ 178 185 m_pStatusBarEditor->setEnabled(isMachineInValidMode()); 179 186 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r54228 r54463 33 33 #ifdef Q_WS_MAC 34 34 , m_fUseUnscaledHiDPIOutput(false) 35 #e ndif /*Q_WS_MAC */35 #else /* !Q_WS_MAC */ 36 36 , m_fShowMiniToolBar(false) 37 37 , m_fMiniToolBarAtTop(false) 38 #endif /* !Q_WS_MAC */ 38 39 {} 39 40 … … 41 42 bool equal(const UIDataSettingsMachineInterface &other) const 42 43 { 43 return (m_dScaleFactor == other.m_dScaleFactor) &&44 return (m_dScaleFactor == other.m_dScaleFactor) 44 45 #ifdef Q_WS_MAC 45 (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) && 46 #endif /* Q_WS_MAC */ 47 (m_fShowMiniToolBar == other.m_fShowMiniToolBar) && 48 (m_fMiniToolBarAtTop == other.m_fMiniToolBarAtTop); 46 && (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) 47 #else /* !Q_WS_MAC */ 48 && (m_fShowMiniToolBar == other.m_fShowMiniToolBar) 49 && (m_fMiniToolBarAtTop == other.m_fMiniToolBarAtTop) 50 #endif /* !Q_WS_MAC */ 51 ; 49 52 } 50 53 … … 57 60 #ifdef Q_WS_MAC 58 61 bool m_fUseUnscaledHiDPIOutput; 59 #e ndif /*Q_WS_MAC */62 #else /* !Q_WS_MAC */ 60 63 bool m_fShowMiniToolBar; 61 64 bool m_fMiniToolBarAtTop; 65 #endif /* !Q_WS_MAC */ 62 66 }; 63 67 typedef UISettingsCache<UIDataSettingsMachineInterface> UICacheSettingsMachineInterface;
Note:
See TracChangeset
for help on using the changeset viewer.