Changeset 9070 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- May 23, 2008 11:36:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r9067 r9070 1033 1033 maybeRestrictMinimumSize(); 1034 1034 1035 if (m GuestSupportsGraphics && mAutoresizeGuest)1035 if (mAutoresizeGuest) 1036 1036 doResizeHint(); 1037 1037 } … … 1605 1605 * when (and only when) the autoresize property is "true". */ 1606 1606 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1607 if (!mIgnoreMainwndResize && 1608 mGuestSupportsGraphics && mAutoresizeGuest) 1607 if (!mIgnoreMainwndResize && mAutoresizeGuest) 1609 1608 QTimer::singleShot (300, this, SLOT (doResizeHint())); 1610 1609 break; … … 2288 2287 void VBoxConsoleView::toggleFSMode() 2289 2288 { 2290 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2291 mMainWnd->isTrueFullscreen()) 2289 if (mAutoresizeGuest || mMainWnd->isTrueFullscreen()) 2292 2290 { 2293 2291 QSize newSize = QSize(); … … 2301 2299 doResizeHint (newSize); 2302 2300 } 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 2308 2305 * before normalizing geometry. */ 2309 mToggleFSModeTimer->start (mGuestSupportsGraphics && mAutoresizeGuest ? 2310 2000 : 100); 2306 mToggleFSModeTimer->start (mAutoresizeGuest ? 2000 : 100); 2311 2307 2312 2308 /// @todo (r=dsen) perform roll-back after 'entering' mode in case … … 2341 2337 bool VBoxConsoleView::isAutoresizeGuestActive() 2342 2338 { 2343 return m GuestSupportsGraphics && mAutoresizeGuest;2339 return mAutoresizeGuest; 2344 2340 } 2345 2341 … … 3592 3588 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3593 3589 { 3594 if (m GuestSupportsGraphics && mAutoresizeGuest)3590 if (mAutoresizeGuest) 3595 3591 { 3596 3592 /* If this slot is invoked directly then use the passed size … … 3710 3706 if (mode == VBoxDefs::SDLMode) 3711 3707 { 3712 if (!m GuestSupportsGraphics || !mAutoresizeGuest)3708 if (!mAutoresizeGuest) 3713 3709 setMinimumSize (sizeHint()); 3714 3710 else
Note:
See TracChangeset
for help on using the changeset viewer.