VirtualBox

Changeset 38991 in vbox


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

FE/Qt: unused variable.

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

Legend:

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

    r38990 r38991  
    549549QSize UIMachineView::sizeHint() const
    550550{
     551    QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height());
     552    QSize hint = fb.boundedTo(m_storedConsoleSize);
    551553#ifdef VBOX_WITH_DEBUGGER
    552554    // TODO: Fix all DEBUGGER stuff!
    553555    /* HACK ALERT! Really ugly workaround for the resizing to 9x1 done by DevVGA if provoked before power on. */
    554     QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height());
    555     if (fb.width() < 16 || fb.height() < 16)
     556    if (hint.width() < 16 || hint.height() < 16)
    556557    {
    557558        CMachine machine = uisession()->session().GetMachine();
    558559        if (   vboxGlobal().isStartPausedEnabled()
    559560            || vboxGlobal().isDebuggerAutoShowEnabled(machine))
    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 */
     561        hint = QSize(640, 480);
     562    }
     563#endif /* VBOX_WITH_DEBUGGER */
     564    return QSize(hint.width() + frameWidth() * 2, hint.height() + frameWidth() * 2);
    566565}
    567566
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

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

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

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

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