VirtualBox

Changeset 32482 in vbox


Ignore:
Timestamp:
Sep 14, 2010 1:38:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65856
Message:

FE/Qt: 3355: Add option to disable host's screen-saver when working with VBox: Disabled for win-host for now.

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

Legend:

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

    r32431 r32482  
    613613        pGuestAutoresizeSwitch->setChecked(strSettings != "off");
    614614
    615 #ifdef Q_WS_WIN
     615#if 0 /* Disabled for now! */
     616# ifdef Q_WS_WIN
    616617        /* Disable host screen-saver if requested: */
    617618        if (vboxGlobal().settings().hostScreenSaverDisabled())
    618619            SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, false, 0, 0);
    619 #endif /* Q_WS_WIN */
     620# endif /* Q_WS_WIN */
     621#endif
    620622    }
    621623}
     
    636638                             QString() : "off");
    637639
    638 #ifdef Q_WS_WIN
     640#if 0 /* Disabled for now! */
     641# ifdef Q_WS_WIN
    639642        /* Restore screen-saver activity to system default: */
    640643        SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, true, 0, 0);
    641 #endif /* Q_WS_WIN */
     644# endif /* Q_WS_WIN */
     645#endif
    642646    }
    643647}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/VBoxGLSettingsGeneral.cpp

    r32100 r32482  
    3838    mWtSpacer2->hide();
    3939#endif /* !Q_WS_MAC */
    40 #ifndef Q_WS_WIN
     40//#ifndef Q_WS_WIN /* Checkbox hidden for now! */
    4141    mCbDisableHostScreenSaver->hide();
    4242    mWtSpacer3->hide();
    43 #endif /* !Q_WS_WIN */
     43//#endif /* !Q_WS_WIN */
    4444
    4545    if (mCbCheckTrayIcon->isHidden() &&
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