VirtualBox

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


Ignore:
Timestamp:
Oct 25, 2011 10:09:41 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: a small refactoring and a documentation comment.

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

Legend:

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

    r39099 r39107  
    906906}
    907907
     908UIVisualStateType UIMachineView::visualStateType()
     909{
     910    return machineLogic()->visualStateType();
     911}
     912
    908913bool UIMachineView::isFullscreenOrSeamless()
    909914{
    910     UIVisualStateType type = machineLogic()->visualStateType();
    911     return    type == UIVisualStateType_Fullscreen
    912            || type == UIVisualStateType_Seamless;
     915    return    visualStateType() == UIVisualStateType_Fullscreen
     916           || visualStateType() == UIVisualStateType_Seamless;
    913917}
    914918
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r39094 r39107  
    174174#endif /* Q_WS_MAC */
    175175    bool guestResizeEvent(QEvent *pEvent, bool fFullscreen);
     176    /** What view mode (normal, fullscreen etc.) are we in? */
     177    UIVisualStateType visualStateType();
    176178    /** Is this a fullscreen-type view? */
    177179    bool isFullscreenOrSeamless();
     180    /** Return a string consisting of @a base with a suffix for the active
     181     * virtual monitor.  Used for storing monitor-specific extra data. */
    178182    QString makeExtraDataKeyPerMonitor(QString base) const;
    179183
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