VirtualBox

Changeset 38987 in vbox


Ignore:
Timestamp:
Oct 13, 2011 3:24:14 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: cleanup of r74363 after review

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

Legend:

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

    r38981 r38987  
    113113#endif /* VBOX_WITH_VIDEOHWACCEL */
    114114                                                       );
    115             pMachineView->m_fIsFullscreen = true;
    116115            break;
    117116        case UIVisualStateType_Seamless:
     
    122121#endif /* VBOX_WITH_VIDEOHWACCEL */
    123122                                                     );
    124             pMachineView->m_fIsFullscreen = true;
    125123            break;
    126124        case UIVisualStateType_Scale:
     
    167165     * fullscreen resize hint was sent: */
    168166    machine.SetExtraData(VBoxDefs::GUI_LastGuestSizeHintWasFullscreen,
    169                          m_fIsFullscreen ? "true" : "");
     167                         isFullscreenOrSeamless() ? "true" : "");
    170168}
    171169
     
    234232                             )
    235233    : QAbstractScrollArea(pMachineWindow->machineWindow())
    236     , m_fIsFullscreen(false)
    237234    , m_pMachineWindow(pMachineWindow)
    238235    , m_uScreenId(uScreenId)
     
    850847#endif /* Q_WS_MAC */
    851848
    852 bool UIMachineView::guestResizeEvent(QEvent *pEvent, bool fFullscreen)
     849bool UIMachineView::guestResizeEvent(QEvent *pEvent,
     850                                     bool fFullscreenOrSeamless)
    853851{
    854852    /* Some situations require framebuffer resize events to be ignored at all,
     
    883881
    884882    /* Normalize machine-window geometry: */
    885     if (!fFullscreen)
     883    if (!fFullscreenOrSeamless)
    886884        normalizeGeometry(true /* Adjust Position? */);
    887885
     
    899897    pEvent->accept();
    900898    return true;
     899}
     900
     901bool UIMachineView::isFullscreenOrSeamless()
     902{
     903    UIVisualStateType type = machineLogic()->visualStateType();
     904    return    type == UIVisualStateType_Fullscreen
     905           || type == UIVisualStateType_Fullscreen;
    901906}
    902907
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r38981 r38987  
    7171    /* Utility signals: */
    7272    void resizeHintDone();
    73 
    74 private:
    75 
    76     /** Is this a fullscreen-type view? */
    77     bool m_fIsFullscreen;
    7873
    7974protected slots:
     
    158153#endif /* Q_WS_MAC */
    159154    bool guestResizeEvent(QEvent *pEvent, bool fFullscreen);
     155    /** Is this a fullscreen-type view? */
     156    bool isFullscreenOrSeamless();
    160157
    161158    /* Cross-platforms event processors: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r38981 r38987  
    128128                /* Send guest-resize hint only if top window resizing to required dimension: */
    129129                QResizeEvent *pResizeEvent = static_cast<QResizeEvent*>(pEvent);
    130                 /** @todo why is this here?  If it is a workaround
    131                  * for some situation that should be documented. */
    132130                if (pResizeEvent->size() != workingArea().size())
    133131                    break;
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