VirtualBox

Changeset 38992 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 13, 2011 9:28:21 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: reverted r74389 as I committed far too much.

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

Legend:

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

    r38991 r38992  
    549549QSize UIMachineView::sizeHint() const
    550550{
    551     QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height());
    552     QSize hint = fb.boundedTo(m_storedConsoleSize);
    553551#ifdef VBOX_WITH_DEBUGGER
    554552    // TODO: Fix all DEBUGGER stuff!
    555553    /* HACK ALERT! Really ugly workaround for the resizing to 9x1 done by DevVGA if provoked before power on. */
    556     if (hint.width() < 16 || hint.height() < 16)
     554    QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height());
     555    if (fb.width() < 16 || fb.height() < 16)
    557556    {
    558557        CMachine machine = uisession()->session().GetMachine();
    559558        if (   vboxGlobal().isStartPausedEnabled()
    560559            || vboxGlobal().isDebuggerAutoShowEnabled(machine))
    561         hint = QSize(640, 480);
    562     }
    563 #endif /* VBOX_WITH_DEBUGGER */
    564     return QSize(hint.width() + frameWidth() * 2, hint.height() + frameWidth() * 2);
     560        fb = QSize(640, 480);
     561    }
     562    return QSize(fb.width() + frameWidth() * 2, fb.height() + frameWidth() * 2);
     563#else /* VBOX_WITH_DEBUGGER */
     564    return QSize(m_pFrameBuffer->width() + frameWidth() * 2, m_pFrameBuffer->height() + frameWidth() * 2);
     565#endif /* !VBOX_WITH_DEBUGGER */
    565566}
    566567
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r38991 r38992  
    209209    /* This method should not get called until we have initially set up the desktop geometry type: */
    210210    Assert((desktopGeometryType() != DesktopGeo_Invalid));
    211     if (desktopGeometryType() != DesktopGeo_Fixed)
     211    /* If we are not doing automatic geometry calculation then there is nothing to do: */
     212    if (desktopGeometryType() == DesktopGeo_Automatic)
    212213        m_desktopGeometry = workingArea().size();
    213214}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp

    r38991 r38992  
    132132            case QEvent::Resize:
    133133            {
     134                const QSize *pSize = &static_cast<QResizeEvent *>(pEvent)
     135                                    ->size();
    134136                if (pEvent->spontaneous() && m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())
    135137                    QTimer::singleShot(300, this, SLOT(sltPerformGuestResize()));
     
    306308    /* This method should not get called until we have initially set up the desktop geometry type: */
    307309    Assert((desktopGeometryType() != DesktopGeo_Invalid));
    308     if (desktopGeometryType() != DesktopGeo_Fixed)
     310    /* If we are not doing automatic geometry calculation then there is nothing to do: */
     311    if (desktopGeometryType() == DesktopGeo_Automatic)
    309312    {
    310313        /* The area taken up by the machine window on the desktop,
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp

    r38991 r38992  
    372372    /* This method should not get called until we have initially set up the desktop geometry type: */
    373373    Assert((desktopGeometryType() != DesktopGeo_Invalid));
    374     if (desktopGeometryType() != DesktopGeo_Fixed)
     374    /* If we are not doing automatic geometry calculation then there is nothing to do: */
     375    if (desktopGeometryType() == DesktopGeo_Automatic)
    375376    {
    376377        /* The area taken up by the machine window on the desktop,
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r38991 r38992  
    227227    /* This method should not get called until we have initially set up the desktop geometry type: */
    228228    Assert((desktopGeometryType() != DesktopGeo_Invalid));
    229     if (desktopGeometryType() != DesktopGeo_Fixed)
     229    /* If we are not doing automatic geometry calculation then there is nothing to do: */
     230    if (desktopGeometryType() == DesktopGeo_Automatic)
    230231        m_desktopGeometry = workingArea().size();
    231232}
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