Changeset 98849 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 7, 2023 8:27:57 AM (22 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98809 r98849 593 593 { 594 594 /* Here we have to update host LED lock states using values provided by UISession: 595 * [bool] ui session() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */595 * [bool] uimachine() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */ 596 596 597 597 if (!uimachine()->isHidLedsSyncEnabled()) … … 883 883 connect(uimachine(), &UIMachine::sigHostScreenGeometryChange, this, &UIMachineLogic::sltHostScreenGeometryChange); 884 884 connect(uimachine(), &UIMachine::sigHostScreenAvailableAreaChange, this, &UIMachineLogic::sltHostScreenAvailableAreaChange); 885 886 /* We should notify about frame-buffer events: */887 connect(this, &UIMachineLogic::sigFrameBufferResize, uisession(), &UISession::sigFrameBufferResize);888 885 } 889 886 … … 1434 1431 disconnect(uimachine(), &UIMachine::sigHostScreenGeometryChange, this, &UIMachineLogic::sltHostScreenGeometryChange); 1435 1432 disconnect(uimachine(), &UIMachine::sigHostScreenAvailableAreaChange, this, &UIMachineLogic::sltHostScreenAvailableAreaChange); 1436 1437 /* We should stop notify about frame-buffer events: */1438 disconnect(this, &UIMachineLogic::sigFrameBufferResize, uisession(), &UISession::sigFrameBufferResize);1439 1433 } 1440 1434 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r98808 r98849 65 65 typedef void (UIMachineLogic::*MenuUpdateHandler)(QMenu *pMenu); 66 66 67 signals:68 69 /** Notifies about frame-buffer resize. */70 void sigFrameBufferResize();71 72 67 public: 73 68 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r98683 r98849 578 578 m_pMachineView = UIMachineView::create(this, m_uScreenId, visualStateType); 579 579 580 /* Listen for frame-buffer resize: */581 connect(m_pMachineView, &UIMachineView::sigFrameBufferResize, this, &UIMachineWindow::sigFrameBufferResize);582 583 580 /* Add machine-view into main-layout: */ 584 581 m_pMainLayout->addWidget(m_pMachineView, 1, 1, viewAlignment(visualStateType)); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r98683 r98849 61 61 Q_OBJECT; 62 62 63 signals:64 65 /** Notifies about frame-buffer resize. */66 void sigFrameBufferResize();67 68 63 public: 69 64 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98841 r98849 142 142 /** Notifies listeners about cursor position change. */ 143 143 void sigCursorPositionChange(bool fContainsData, unsigned long uX, unsigned long uY); 144 /** @} */145 146 /** @name Graphics stuff.147 ** @{ */148 /** Notifies about frame-buffer resize. */149 void sigFrameBufferResize();150 144 /** @} */ 151 145 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r98670 r98849 547 547 for (uint cScreenId = 0; cScreenId < cMonitorCount; ++cScreenId) 548 548 addMachineWindow(UIMachineWindow::create(this, cScreenId)); 549 550 /* Listen for frame-buffer resize: */551 foreach (UIMachineWindow *pMachineWindow, machineWindows())552 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,553 this, &UIMachineLogicFullscreen::sigFrameBufferResize);554 emit sigFrameBufferResize();555 549 556 550 /* Connect multi-screen layout change handler: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r98669 r98849 292 292 machineWindows()[uScreenId - 1]->raise(); 293 293 294 /* Listen for frame-buffer resize: */295 foreach (UIMachineWindow *pMachineWindow, machineWindows())296 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,297 this, &UIMachineLogicNormal::sigFrameBufferResize);298 emit sigFrameBufferResize();299 300 294 /* Mark machine-window(s) created: */ 301 295 setMachineWindowsCreated(true); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r98669 r98849 161 161 machineWindows()[uScreenId - 1]->raise(); 162 162 163 /* Listen for frame-buffer resize: */164 foreach (UIMachineWindow *pMachineWindow, machineWindows())165 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,166 this, &UIMachineLogicScale::sigFrameBufferResize);167 emit sigFrameBufferResize();168 169 163 /* Mark machine-window(s) created: */ 170 164 setMachineWindowsCreated(true); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r98670 r98849 277 277 addMachineWindow(UIMachineWindow::create(this, cScreenId)); 278 278 279 /* Listen for frame-buffer resize: */280 foreach (UIMachineWindow *pMachineWindow, machineWindows())281 connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,282 this, &UIMachineLogicSeamless::sigFrameBufferResize);283 emit sigFrameBufferResize();284 285 279 /* Connect multi-screen layout change handler: */ 286 280 connect(m_pScreenLayout, &UIMultiScreenLayout::sigScreenLayoutChange,
Note:
See TracChangeset
for help on using the changeset viewer.