VirtualBox

Changeset 9070 in vbox for trunk/src


Ignore:
Timestamp:
May 23, 2008 11:36:46 AM (17 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox and VirtualBox4: mAutoresizeGuest implies mGuestSupportsGraphics

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

Legend:

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

    r9067 r9070  
    998998        maybeRestrictMinimumSize();
    999999
    1000         if (mGuestSupportsGraphics && mAutoresizeGuest)
     1000        if (mAutoresizeGuest)
    10011001            doResizeHint();
    10021002    }
     
    15581558                 * when (and only when) the autoresize property is "true". */
    15591559                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    1560                 if (!mIgnoreMainwndResize &&
    1561                     mGuestSupportsGraphics && mAutoresizeGuest)
     1560                if (!mIgnoreMainwndResize && mAutoresizeGuest)
    15621561                    resize_hint_timer->start (300, TRUE);
    15631562                break;
     
    22482247void VBoxConsoleView::toggleFSMode (const QSize &aSize)
    22492248{
    2250     if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
    2251         mMainWnd->isTrueFullscreen())
     2249    if (mAutoresizeGuest || mMainWnd->isTrueFullscreen())
    22522250    {
    22532251        QSize newSize;
     
    22902288bool VBoxConsoleView::isAutoresizeGuestActive()
    22912289{
    2292     return mGuestSupportsGraphics && mAutoresizeGuest;
     2290    return mAutoresizeGuest;
    22932291}
    22942292
     
    35493547void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35503548{
    3551     if (mGuestSupportsGraphics && mAutoresizeGuest)
     3549    if (mAutoresizeGuest)
    35523550    {
    35533551        /* If this slot is invoked directly then use the passed size
     
    36673665    if (mode == VBoxDefs::SDLMode)
    36683666    {
    3669         if (!mGuestSupportsGraphics || !mAutoresizeGuest)
     3667        if (!mAutoresizeGuest)
    36703668            setMinimumSize (sizeHint());
    36713669        else
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r9067 r9070  
    10331033        maybeRestrictMinimumSize();
    10341034
    1035         if (mGuestSupportsGraphics && mAutoresizeGuest)
     1035        if (mAutoresizeGuest)
    10361036            doResizeHint();
    10371037    }
     
    16051605                 * when (and only when) the autoresize property is "true". */
    16061606                mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen();
    1607                 if (!mIgnoreMainwndResize &&
    1608                     mGuestSupportsGraphics && mAutoresizeGuest)
     1607                if (!mIgnoreMainwndResize && mAutoresizeGuest)
    16091608                    QTimer::singleShot (300, this, SLOT (doResizeHint()));
    16101609                break;
     
    22882287void VBoxConsoleView::toggleFSMode()
    22892288{
    2290     if ((mGuestSupportsGraphics && mAutoresizeGuest) ||
    2291         mMainWnd->isTrueFullscreen())
     2289    if (mAutoresizeGuest || mMainWnd->isTrueFullscreen())
    22922290    {
    22932291        QSize newSize = QSize();
     
    23012299        doResizeHint (newSize);
    23022300    }
    2303     /* Currently there is 2000 msec pause before timer transfers
    2304      * console into desired mode "if GA are active and auto-resize
    2305      * feature enabled" and 100 msec pause before it transfers
    2306      * console into this mode "if GA are not active or auto-resize
    2307      * feature disabled". 100 msec pause required for resizing
     2301    /* Currently there is a 2000 msec pause before timer transfers
     2302     * console into desired mode if the auto-resize feature is enabled
     2303     * and a 100 msec pause before it transfers console into this mode
     2304     * if it is not enabled. 100 msec pause required for resizing
    23082305     * before normalizing geometry. */
    2309     mToggleFSModeTimer->start (mGuestSupportsGraphics && mAutoresizeGuest ?
    2310         2000 : 100);
     2306    mToggleFSModeTimer->start (mAutoresizeGuest ? 2000 : 100);
    23112307
    23122308    /// @todo (r=dsen) perform roll-back after 'entering' mode in case
     
    23412337bool VBoxConsoleView::isAutoresizeGuestActive()
    23422338{
    2343     return mGuestSupportsGraphics && mAutoresizeGuest;
     2339    return mAutoresizeGuest;
    23442340}
    23452341
     
    35923588void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35933589{
    3594     if (mGuestSupportsGraphics && mAutoresizeGuest)
     3590    if (mAutoresizeGuest)
    35953591    {
    35963592        /* If this slot is invoked directly then use the passed size
     
    37103706    if (mode == VBoxDefs::SDLMode)
    37113707    {
    3712         if (!mGuestSupportsGraphics || !mAutoresizeGuest)
     3708        if (!mAutoresizeGuest)
    37133709            setMinimumSize (sizeHint());
    37143710        else
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