VirtualBox

Changeset 82030 in vbox


Ignore:
Timestamp:
Nov 20, 2019 4:07:24 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134834
Message:

FE/Qt: bugref:9598: UIMachineView and UIMouseHandler: Pass pointer shape change signal from session to handler through machine-view, to keep proper order of events.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r81964 r82030  
    836836    /* Machine state-change updater: */
    837837    connect(uisession(), &UISession::sigMachineStateChange, this, &UIMachineView::sltMachineStateChanged);
     838    /* Mouse pointer shape updater: */
     839    connect(uisession(), &UISession::sigMousePointerShapeChange, this, &UIMachineView::sigMousePointerShapeChange);
    838840}
    839841
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r76581 r82030  
    7070signals:
    7171
     72    /** Notifies about mouse pointer shape change. */
     73    void sigMousePointerShapeChange();
    7274    /** Notifies about frame-buffer resize. */
    7375    void sigFrameBufferResize();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r80617 r82030  
    108108        /* Install event-filter for machine-view: */
    109109        m_views[uIndex]->installEventFilter(this);
     110        /* Make machine-view notify mouse-handler about mouse pointer shape change: */
     111        connect(m_views[uIndex], &UIMachineView::sigMousePointerShapeChange, this, &UIMouseHandler::sltMousePointerShapeChanged);
    110112        /* Make machine-view notify mouse-handler about frame-buffer resize: */
    111113        connect(m_views[uIndex], &UIMachineView::sigFrameBufferResize, this, &UIMouseHandler::sltMousePointerShapeChanged);
     
    523525    connect(uisession(), &UISession::sigMouseCapabilityChange, this, &UIMouseHandler::sltMouseCapabilityChanged);
    524526
    525     /* Mouse pointer shape state-change updaters: */
    526     connect(uisession(), &UISession::sigMousePointerShapeChange, this, &UIMouseHandler::sltMousePointerShapeChanged);
     527    /* Mouse pointer shape state-change updater: */
    527528    connect(this, &UIMouseHandler::sigStateChange, this, &UIMouseHandler::sltMousePointerShapeChanged);
    528529
Note: See TracChangeset for help on using the changeset viewer.

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