VirtualBox

Ignore:
Timestamp:
May 19, 2008 12:11:49 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30970
Message:

FE/Qt4: set/mainWidget is deprecated so create our own place to store that bit of information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxFBQuartz2D.cpp

    r8155 r8915  
    157157    Assert (mImage);
    158158
    159     QWidget *pMain = qApp->mainWidget();
    160     Assert (VALID_PTR (pMain));
     159    QWidget *main = vboxGlobal().mainWindow();
     160    Assert (VALID_PTR (main));
    161161    QWidget* viewport = mView->viewport();
    162162    Assert (VALID_PTR (viewport));
     
    171171    Assert (VALID_PTR (ctx));
    172172    /* We handle the seamless mode as a special case. */
    173     if (qobject_cast <VBoxConsoleWnd *> (pMain)->isTrueSeamless())
     173    if (qobject_cast <VBoxConsoleWnd *> (main)->isTrueSeamless())
    174174    {
    175175        /* Here we paint the windows without any wallpaper.
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