VirtualBox

Changeset 26796 in vbox


Ignore:
Timestamp:
Feb 25, 2010 1:40:52 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: don't depend on VBoxConsoleView

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

Legend:

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

    r26782 r26796  
    761761    {
    762762        case VBoxDefs::QGLMode:
    763             pViewport = new VBoxGLWidget (this, this, NULL);
     763            pViewport = new VBoxGLWidget (mConsole, this, NULL);
    764764            break;
    765765        default:
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r26793 r26796  
    19171917};
    19181918
    1919 VBoxGLWidget::VBoxGLWidget (VBoxConsoleView *aView, QWidget *aParent, VBoxVHWASettings *aSettings)
     1919VBoxGLWidget::VBoxGLWidget (CConsole& console, QWidget *aParent, VBoxVHWASettings *aSettings)
    19201920    : QGLWidget (new VBoxGLContext(VBoxGLWidget::vboxGLFormat()), aParent),
    19211921    mSurfHandleTable(128), /* 128 should be enough */
     
    19261926    mRepaintNeeded(false),
    19271927//    mbVGASurfCreated(false),
    1928     mView(aView),
     1928    m_console(console),
    19291929    mConstructingList(NULL),
    19301930    mcRemaining2Contruct(0),
     
    21202120    vboxDoVHWACmdExec(cmd);
    21212121
    2122     CDisplay display = mView->console().GetDisplay();
     2122    CDisplay display = m_console.GetDisplay();
    21232123    Assert (!display.isNull());
    21242124
     
    41424142        return;
    41434143
    4144     mpOverlayWidget = new VBoxGLWidget (mView, mView->viewport(), &mSettings);
     4144    mpOverlayWidget = new VBoxGLWidget (mView->console(), mView->viewport(), &mSettings);
    41454145
    41464146    VBoxGLContext *pc = (VBoxGLContext*)mpOverlayWidget->context();
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h

    r26793 r26796  
    13381338{
    13391339public:
    1340     VBoxGLWidget (class VBoxConsoleView *aView, QWidget *aParent, VBoxVHWASettings *aSettings);
     1340    VBoxGLWidget (CConsole &console, QWidget *aParent, VBoxVHWASettings *aSettings);
    13411341    ~VBoxGLWidget();
    13421342
     
    15351535    QRect mViewport;
    15361536
    1537     class VBoxConsoleView *mView;
     1537    CConsole &m_console;
    15381538
    15391539    VBoxVHWASurfList *mConstructingList;
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