Changeset 97975 in vbox
- Timestamp:
- Jan 4, 2023 11:28:02 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155066
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r97682 r97975 55 55 UIMachineViewFullscreen::UIMachineViewFullscreen(UIMachineWindow *pMachineWindow, ulong uScreenId) 56 56 : UIMachineView(pMachineWindow, uScreenId) 57 , m_ bIsGuestAutoresizeEnabled(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked())57 , m_fGuestAutoresizeEnabled(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked()) 58 58 { 59 59 } … … 123 123 void UIMachineViewFullscreen::setGuestAutoresizeEnabled(bool fEnabled) 124 124 { 125 if (m_ bIsGuestAutoresizeEnabled != fEnabled)126 { 127 m_ bIsGuestAutoresizeEnabled = fEnabled;128 129 if (m_ bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())125 if (m_fGuestAutoresizeEnabled != fEnabled) 126 { 127 m_fGuestAutoresizeEnabled = fEnabled; 128 129 if (m_fGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 130 130 sltPerformGuestResize(); 131 131 } … … 186 186 if (fAdjust) 187 187 { 188 if (!m_ bIsGuestAutoresizeEnabled)188 if (!m_fGuestAutoresizeEnabled) 189 189 { 190 190 LogRel2(("GUI: UIMachineViewFullscreen::adjustGuestScreenSize: Guest-screen auto-resize is disabled, adjustment is omitted.\n")); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h
r96407 r97975 67 67 68 68 /** Returns whether the guest-screen auto-resize is enabled. */ 69 virtual bool isGuestAutoresizeEnabled() const RT_OVERRIDE { return m_ bIsGuestAutoresizeEnabled; }69 virtual bool isGuestAutoresizeEnabled() const RT_OVERRIDE { return m_fGuestAutoresizeEnabled; } 70 70 /** Defines whether the guest-screen auto-resize is @a fEnabled. */ 71 71 virtual void setGuestAutoresizeEnabled(bool bEnabled) RT_OVERRIDE; … … 79 79 80 80 /* Private variables: */ 81 bool m_ bIsGuestAutoresizeEnabled : 1;81 bool m_fGuestAutoresizeEnabled : 1; 82 82 83 83 /* Friend classes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r97682 r97975 49 49 UIMachineViewNormal::UIMachineViewNormal(UIMachineWindow *pMachineWindow, ulong uScreenId) 50 50 : UIMachineView(pMachineWindow, uScreenId) 51 , m_ bIsGuestAutoresizeEnabled(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked())51 , m_fGuestAutoresizeEnabled(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked()) 52 52 { 53 53 } … … 69 69 setMaxGuestSize(); 70 70 /* And resize guest to current window size: */ 71 if (m_ bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())71 if (m_fGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 72 72 QTimer::singleShot(300, this, SLOT(sltPerformGuestResize())); 73 73 break; … … 137 137 void UIMachineViewNormal::setGuestAutoresizeEnabled(bool fEnabled) 138 138 { 139 if (m_ bIsGuestAutoresizeEnabled != fEnabled)140 { 141 m_ bIsGuestAutoresizeEnabled = fEnabled;142 143 if (m_ bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())139 if (m_fGuestAutoresizeEnabled != fEnabled) 140 { 141 m_fGuestAutoresizeEnabled = fEnabled; 142 143 if (m_fGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 144 144 sltPerformGuestResize(); 145 145 } … … 215 215 * or the guest-additions doesn't support graphics 216 216 * we should take scroll-bars size-hints into account: */ 217 if (!m_ bIsGuestAutoresizeEnabled || !uisession()->isGuestSupportsGraphics())217 if (!m_fGuestAutoresizeEnabled || !uisession()->isGuestSupportsGraphics()) 218 218 { 219 219 if (verticalScrollBar()->isVisible()) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h
r96407 r97975 67 67 68 68 /** Returns whether the guest-screen auto-resize is enabled. */ 69 virtual bool isGuestAutoresizeEnabled() const RT_OVERRIDE { return m_ bIsGuestAutoresizeEnabled; }69 virtual bool isGuestAutoresizeEnabled() const RT_OVERRIDE { return m_fGuestAutoresizeEnabled; } 70 70 /** Defines whether the guest-screen auto-resize is @a fEnabled. */ 71 71 virtual void setGuestAutoresizeEnabled(bool bEnabled) RT_OVERRIDE; … … 83 83 84 84 /* Private members: */ 85 bool m_ bIsGuestAutoresizeEnabled : 1;85 bool m_fGuestAutoresizeEnabled : 1; 86 86 87 87 /* Friend classes: */
Note:
See TracChangeset
for help on using the changeset viewer.