VirtualBox

Ignore:
Timestamp:
Feb 12, 2007 11:27:14 AM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Make the Auto-resize Guest Display option On by deafult for newly created machines.

File:
1 edited

Legend:

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

    r827 r831  
    557557    /* restore the position of the window and some options */
    558558    {
    559         QString on = cmachine.GetExtraData (GUI_Fullscreen);
     559        QString str = cmachine.GetExtraData (GUI_Fullscreen);
    560560#ifdef Q_WS_X11
    561561        /* Workaround: When switching to fullscreen, the display is sometimes not updated */
    562562        console->setFrameStyle (QFrame::NoFrame);
    563563#endif
    564         if (on == "on")
    565             vmFullscreenAction->setOn (on);
    566 
    567         on = cmachine.GetExtraData (GUI_AutoresizeGuest);
    568         if (on == "on")
    569             vmAutoresizeGuestAction->setOn (on);
    570 
    571         QString winPos = cmachine.GetExtraData (GUI_LastWindowPosition);
     564        if (str == "on")
     565            vmFullscreenAction->setOn (true);
     566
     567        str = cmachine.GetExtraData (GUI_AutoresizeGuest);
     568        if (str != "off")
     569            vmAutoresizeGuestAction->setOn (true);
     570
     571        str = cmachine.GetExtraData (GUI_LastWindowPosition);
    572572
    573573        QRect ar = QApplication::desktop()->availableGeometry (this);
    574574        bool ok = false, max = false;
    575575        int x = 0, y = 0, w = 0, h = 0;
    576         x = winPos.section (',', 0, 0).toInt (&ok);
     576        x = str.section (',', 0, 0).toInt (&ok);
    577577        if (ok)
    578             y = winPos.section (',', 1, 1).toInt (&ok);
     578            y = str.section (',', 1, 1).toInt (&ok);
    579579        if (ok)
    580             w = winPos.section (',', 2, 2).toInt (&ok);
     580            w = str.section (',', 2, 2).toInt (&ok);
    581581        if (ok)
    582             h = winPos.section (',', 3, 3).toInt (&ok);
     582            h = str.section (',', 3, 3).toInt (&ok);
    583583        if (ok)
    584             max = winPos.section (',', 4, 4) == GUI_LastWindowPosition_Max;
     584            max = str.section (',', 4, 4) == GUI_LastWindowPosition_Max;
    585585        if (ok)
    586586        {
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