VirtualBox

Ignore:
Timestamp:
Oct 10, 2014 2:28:02 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI rework/cleanup for 7115 (part #12): Update for r96509: Caching keyboard too.

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

Legend:

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

    r53028 r53029  
    981981        return false;
    982982
     983    /* Get guest: */
     984    m_guest = m_console.GetGuest();
     985    if (m_guest.isNull())
     986        return false;
     987
    983988    /* Get mouse: */
    984989    m_mouse = m_console.GetMouse();
     
    986991        return false;
    987992
    988     /* Get guest: */
    989     m_guest = m_console.GetGuest();
    990     if (m_guest.isNull())
     993    /* Get keyboard: */
     994    m_keyboard = m_console.GetKeyboard();
     995    if (m_keyboard.isNull())
    991996        return false;
    992997
     
    13621367        m_debugger.detach();
    13631368
     1369    /* Detach keyboard: */
     1370    if (!m_keyboard.isNull())
     1371        m_keyboard.detach();
     1372
     1373    /* Detach mouse: */
     1374    if (!m_mouse.isNull())
     1375        m_mouse.detach();
     1376
    13641377    /* Detach guest: */
    13651378    if (!m_guest.isNull())
    13661379        m_guest.detach();
    1367 
    1368     /* Detach mouse: */
    1369     if (!m_mouse.isNull())
    1370         m_mouse.detach();
    13711380
    13721381    /* Detach display: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r53028 r53029  
    3333#include "CConsole.h"
    3434#include "CDisplay.h"
     35#include "CGuest.h"
    3536#include "CMouse.h"
    36 #include "CGuest.h"
     37#include "CKeyboard.h"
    3738#include "CMachineDebugger.h"
    3839
     
    103104    /** Returns the console's display instance. */
    104105    CDisplay& display() { return m_display; }
     106    /** Returns the console's guest instance. */
     107    CGuest& guest() { return m_guest; }
    105108    /** Returns the console's mouse instance. */
    106109    CMouse& mouse() { return m_mouse; }
    107     /** Returns the console's guest instance. */
    108     CGuest& guest() { return m_guest; }
     110    /** Returns the console's keyboard instance. */
     111    CKeyboard& keyboard() { return m_keyboard; }
    109112    /** Returns the console's debugger instance. */
    110113    CMachineDebugger& debugger() { return m_debugger; }
     
    385388    /** Holds the console's display instance. */
    386389    CDisplay m_display;
     390    /** Holds the console's guest instance. */
     391    CGuest m_guest;
    387392    /** Holds the console's mouse instance. */
    388393    CMouse m_mouse;
    389     /** Holds the console's guest instance. */
    390     CGuest m_guest;
     394    /** Holds the console's keyboard instance. */
     395    CKeyboard m_keyboard;
    391396    /** Holds the console's debugger instance. */
    392397    CMachineDebugger m_debugger;
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