VirtualBox

Changeset 27415 in vbox


Ignore:
Timestamp:
Mar 16, 2010 4:35:53 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58889
Message:

FE/Qt4: New running VM core: renaming UIMachineView::availableGeometry() => UIMachineView::workingArea() to avoid name conflicts with Qt.

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

Legend:

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

    r27380 r27415  
    128128    void updateMouseCursorClipping();
    129129#endif
    130     virtual QRect availableGeometry() = 0;
     130    virtual QRect workingArea() = 0;
    131131    virtual void calculateDesktopGeometry() = 0;
    132132    virtual void maybeRestrictMinimumSize() = 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r27380 r27415  
    137137    /* Check if we should resize guest to fullscreen, all the
    138138     * required features will be tested in sltPerformGuestResize(...): */
    139     if ((int)frameBuffer()->width() != availableGeometry().size().width() ||
    140         (int)frameBuffer()->height() != availableGeometry().size().height())
    141         sltPerformGuestResize(availableGeometry().size());
     139    if ((int)frameBuffer()->width() != workingArea().size().width() ||
     140        (int)frameBuffer()->height() != workingArea().size().height())
     141        sltPerformGuestResize(workingArea().size());
    142142}
    143143
     
    198198                /* Send guest-resize hint only if top window resizing to required dimension: */
    199199                QResizeEvent *pResizeEvent = static_cast<QResizeEvent*>(pEvent);
    200                 if (pResizeEvent->size() != availableGeometry().size())
     200                if (pResizeEvent->size() != workingArea().size())
    201201                    break;
    202202
     
    290290}
    291291
    292 QRect UIMachineViewFullscreen::availableGeometry()
     292QRect UIMachineViewFullscreen::workingArea()
    293293{
    294294    return QApplication::desktop()->screenGeometry(this);
     
    302302    if (desktopGeometryType() == DesktopGeo_Automatic)
    303303    {
    304         m_desktopGeometry = QSize(availableGeometry().width(), availableGeometry().height());
     304        m_desktopGeometry = QSize(workingArea().width(), workingArea().height());
    305305    }
    306306}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h

    r27379 r27415  
    7878    /* Private helpers: */
    7979    void normalizeGeometry(bool /* fAdjustPosition */) {}
    80     QRect availableGeometry();
     80    QRect workingArea();
    8181    void calculateDesktopGeometry();
    8282    void maybeRestrictMinimumSize();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp

    r27375 r27415  
    317317}
    318318
    319 QRect UIMachineViewNormal::availableGeometry()
     319QRect UIMachineViewNormal::workingArea()
    320320{
    321321    return QApplication::desktop()->availableGeometry(this);
     
    335335        QRect centralWidgetGeo = static_cast<QMainWindow*>(machineWindowWrapper()->machineWindow())->centralWidget()->geometry();
    336336        /* To work out how big we can make the console window while still fitting on the desktop,
    337          * we calculate availableGeometry() - (windowGeo - centralWidgetGeo).
     337         * we calculate workingArea() - (windowGeo - centralWidgetGeo).
    338338         * This works because the difference between machine window and machine central widget
    339339         * (or at least its width and height) is a constant. */
    340         m_desktopGeometry = QSize(availableGeometry().width() - (windowGeo.width() - centralWidgetGeo.width()),
    341                                   availableGeometry().height() - (windowGeo.height() - centralWidgetGeo.height()));
     340        m_desktopGeometry = QSize(workingArea().width() - (windowGeo.width() - centralWidgetGeo.width()),
     341                                  workingArea().height() - (windowGeo.height() - centralWidgetGeo.height()));
    342342    }
    343343}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h

    r27335 r27415  
    7676    /* Private helpers: */
    7777    void normalizeGeometry(bool fAdjustPosition);
    78     QRect availableGeometry();
     78    QRect workingArea();
    7979    void calculateDesktopGeometry();
    8080    void maybeRestrictMinimumSize();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r27380 r27415  
    210210                /* Send guest-resize hint only if top window resizing to required dimension: */
    211211                QResizeEvent *pResizeEvent = static_cast<QResizeEvent*>(pEvent);
    212                 if (pResizeEvent->size() != availableGeometry().size())
     212                if (pResizeEvent->size() != workingArea().size())
    213213                    break;
    214214
     
    291291}
    292292
    293 QRect UIMachineViewSeamless::availableGeometry()
    294 {
    295 //    return machineWindowWrapper()->machineLogic()->availableGeometry(screenId());
    296 
     293QRect UIMachineViewSeamless::workingArea()
     294{
    297295    return QApplication::desktop()->availableGeometry(this);
    298296}
     
    305303    if (desktopGeometryType() == DesktopGeo_Automatic)
    306304    {
    307         m_desktopGeometry = QSize(availableGeometry().width(), availableGeometry().height());
    308     }
    309 }
    310 
     305        m_desktopGeometry = QSize(workingArea().width(), workingArea().height());
     306    }
     307}
     308
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h

    r27379 r27415  
    7575    /* Private helpers: */
    7676    void normalizeGeometry(bool /* fAdjustPosition */) {}
    77     QRect availableGeometry();
     77    QRect workingArea();
    7878    void calculateDesktopGeometry();
    7979    void maybeRestrictMinimumSize() {}
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