Changeset 88635 in vbox for trunk/src/VBox
- Timestamp:
- Apr 21, 2021 2:05:26 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r82968 r88635 148 148 #endif /* VBOX_WS_X11 */ 149 149 activateWindow(); 150 } 151 152 void UIMachineWindowFullscreen::sltHandleMiniToolBarAutoHideToggled(bool fEnabled) 153 { 154 /* Save mini-toolbar settings: */ 155 printf("save mini-toolbar auto-hide feature status as: %d\n", (int)fEnabled); 156 gEDataManager->setAutoHideMiniToolbar(fEnabled, uiCommon().managedVMUuid()); 150 157 } 151 158 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ … … 282 289 connect(m_pMiniToolBar, &UIMiniToolBar::sigNotifyAboutWindowActivationStolen, 283 290 this, &UIMachineWindowFullscreen::sltRevokeWindowActivation, Qt::QueuedConnection); 291 connect(m_pMiniToolBar, &UIMiniToolBar::sigAutoHideToggled, 292 this, &UIMachineWindowFullscreen::sltHandleMiniToolBarAutoHideToggled); 284 293 } 285 294 } … … 289 298 void UIMachineWindowFullscreen::cleanupMiniToolbar() 290 299 { 291 /* Make sure mini-toolbar was created: */292 if (!m_pMiniToolBar)293 return;294 295 /* Save mini-toolbar settings: */296 gEDataManager->setAutoHideMiniToolbar(m_pMiniToolBar->autoHide(), uiCommon().managedVMUuid());297 300 /* Delete mini-toolbar: */ 298 301 delete m_pMiniToolBar; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r82968 r88635 70 70 /** Revokes window activation. */ 71 71 void sltRevokeWindowActivation(); 72 73 /** Handles signal about mini-toolbar auto-hide toggled. 74 * @param fEnabled Brings whether auto-hide is enabled. */ 75 void sltHandleMiniToolBarAutoHideToggled(bool fEnabled); 72 76 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 73 77 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r82968 r88635 84 84 activateWindow(); 85 85 } 86 87 void UIMachineWindowSeamless::sltHandleMiniToolBarAutoHideToggled(bool fEnabled) 88 { 89 /* Save mini-toolbar settings: */ 90 printf("save mini-toolbar auto-hide feature status as: %d\n", (int)fEnabled); 91 gEDataManager->setAutoHideMiniToolbar(fEnabled, uiCommon().managedVMUuid()); 92 } 86 93 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 87 94 … … 147 154 connect(m_pMiniToolBar, &UIMiniToolBar::sigNotifyAboutWindowActivationStolen, 148 155 this, &UIMachineWindowSeamless::sltRevokeWindowActivation, Qt::QueuedConnection); 156 connect(m_pMiniToolBar, &UIMiniToolBar::sigAutoHideToggled, 157 this, &UIMachineWindowSeamless::sltHandleMiniToolBarAutoHideToggled); 149 158 } 150 159 } … … 154 163 void UIMachineWindowSeamless::cleanupMiniToolbar() 155 164 { 156 /* Make sure mini-toolbar was created: */157 if (!m_pMiniToolBar)158 return;159 160 /* Save mini-toolbar settings: */161 gEDataManager->setAutoHideMiniToolbar(m_pMiniToolBar->autoHide(), uiCommon().managedVMUuid());162 165 /* Delete mini-toolbar: */ 163 166 delete m_pMiniToolBar; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r82968 r88635 49 49 /** Revokes window activation. */ 50 50 void sltRevokeWindowActivation(); 51 52 /** Handles signal about mini-toolbar auto-hide toggled. 53 * @param fEnabled Brings whether auto-hide is enabled. */ 54 void sltHandleMiniToolBarAutoHideToggled(bool fEnabled); 51 55 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 52 56 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r86233 r88635 561 561 /* Propagate from child: */ 562 562 setAutoHide(m_pToolbar->autoHide(), false); 563 emit sigAutoHideToggled(m_pToolbar->autoHide()); 563 564 } 564 565 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r86233 r88635 65 65 /** Notifies listeners about we stole window activation. */ 66 66 void sigNotifyAboutWindowActivationStolen(); 67 68 /** Notifies listeners about auto-hide toggled. 69 * @param fEnabled Brings whether auto-hide is enabled. */ 70 void sigAutoHideToggled(bool fEnabled); 67 71 68 72 public:
Note:
See TracChangeset
for help on using the changeset viewer.