VirtualBox

Ignore:
Timestamp:
Mar 7, 2023 8:27:57 AM (22 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Cleanup frame-buffer related signals and connections; They are unused now anyway.

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  
    593593{
    594594    /* Here we have to update host LED lock states using values provided by UISession:
    595      * [bool] uisession() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */
     595     * [bool] uimachine() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */
    596596
    597597    if (!uimachine()->isHidLedsSyncEnabled())
     
    883883    connect(uimachine(), &UIMachine::sigHostScreenGeometryChange, this, &UIMachineLogic::sltHostScreenGeometryChange);
    884884    connect(uimachine(), &UIMachine::sigHostScreenAvailableAreaChange, this, &UIMachineLogic::sltHostScreenAvailableAreaChange);
    885 
    886     /* We should notify about frame-buffer events: */
    887     connect(this, &UIMachineLogic::sigFrameBufferResize, uisession(), &UISession::sigFrameBufferResize);
    888885}
    889886
     
    14341431    disconnect(uimachine(), &UIMachine::sigHostScreenGeometryChange, this, &UIMachineLogic::sltHostScreenGeometryChange);
    14351432    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);
    14391433}
    14401434
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r98808 r98849  
    6565    typedef void (UIMachineLogic::*MenuUpdateHandler)(QMenu *pMenu);
    6666
    67 signals:
    68 
    69     /** Notifies about frame-buffer resize. */
    70     void sigFrameBufferResize();
    71 
    7267public:
    7368
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r98683 r98849  
    578578    m_pMachineView = UIMachineView::create(this, m_uScreenId, visualStateType);
    579579
    580     /* Listen for frame-buffer resize: */
    581     connect(m_pMachineView, &UIMachineView::sigFrameBufferResize, this, &UIMachineWindow::sigFrameBufferResize);
    582 
    583580    /* Add machine-view into main-layout: */
    584581    m_pMainLayout->addWidget(m_pMachineView, 1, 1, viewAlignment(visualStateType));
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r98683 r98849  
    6161    Q_OBJECT;
    6262
    63 signals:
    64 
    65     /** Notifies about frame-buffer resize. */
    66     void sigFrameBufferResize();
    67 
    6863public:
    6964
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r98841 r98849  
    142142        /** Notifies listeners about cursor position change. */
    143143        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();
    150144    /** @} */
    151145
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r98670 r98849  
    547547    for (uint cScreenId = 0; cScreenId < cMonitorCount; ++cScreenId)
    548548        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();
    555549
    556550    /* Connect multi-screen layout change handler: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r98669 r98849  
    292292        machineWindows()[uScreenId - 1]->raise();
    293293
    294     /* Listen for frame-buffer resize: */
    295     foreach (UIMachineWindow *pMachineWindow, machineWindows())
    296         connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,
    297                 this, &UIMachineLogicNormal::sigFrameBufferResize);
    298     emit sigFrameBufferResize();
    299 
    300294    /* Mark machine-window(s) created: */
    301295    setMachineWindowsCreated(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp

    r98669 r98849  
    161161        machineWindows()[uScreenId - 1]->raise();
    162162
    163     /* Listen for frame-buffer resize: */
    164     foreach (UIMachineWindow *pMachineWindow, machineWindows())
    165         connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,
    166                 this, &UIMachineLogicScale::sigFrameBufferResize);
    167     emit sigFrameBufferResize();
    168 
    169163    /* Mark machine-window(s) created: */
    170164    setMachineWindowsCreated(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r98670 r98849  
    277277        addMachineWindow(UIMachineWindow::create(this, cScreenId));
    278278
    279     /* Listen for frame-buffer resize: */
    280     foreach (UIMachineWindow *pMachineWindow, machineWindows())
    281         connect(pMachineWindow, &UIMachineWindow::sigFrameBufferResize,
    282                 this, &UIMachineLogicSeamless::sigFrameBufferResize);
    283     emit sigFrameBufferResize();
    284 
    285279    /* Connect multi-screen layout change handler: */
    286280    connect(m_pScreenLayout, &UIMultiScreenLayout::sigScreenLayoutChange,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette