- Timestamp:
- May 23, 2008 11:36:46 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9067 r9070 998 998 maybeRestrictMinimumSize(); 999 999 1000 if (m GuestSupportsGraphics && mAutoresizeGuest)1000 if (mAutoresizeGuest) 1001 1001 doResizeHint(); 1002 1002 } … … 1558 1558 * when (and only when) the autoresize property is "true". */ 1559 1559 mDoResize = mGuestSupportsGraphics || mMainWnd->isTrueFullscreen(); 1560 if (!mIgnoreMainwndResize && 1561 mGuestSupportsGraphics && mAutoresizeGuest) 1560 if (!mIgnoreMainwndResize && mAutoresizeGuest) 1562 1561 resize_hint_timer->start (300, TRUE); 1563 1562 break; … … 2248 2247 void VBoxConsoleView::toggleFSMode (const QSize &aSize) 2249 2248 { 2250 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2251 mMainWnd->isTrueFullscreen()) 2249 if (mAutoresizeGuest || mMainWnd->isTrueFullscreen()) 2252 2250 { 2253 2251 QSize newSize; … … 2290 2288 bool VBoxConsoleView::isAutoresizeGuestActive() 2291 2289 { 2292 return m GuestSupportsGraphics && mAutoresizeGuest;2290 return mAutoresizeGuest; 2293 2291 } 2294 2292 … … 3549 3547 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3550 3548 { 3551 if (m GuestSupportsGraphics && mAutoresizeGuest)3549 if (mAutoresizeGuest) 3552 3550 { 3553 3551 /* If this slot is invoked directly then use the passed size … … 3667 3665 if (mode == VBoxDefs::SDLMode) 3668 3666 { 3669 if (!m GuestSupportsGraphics || !mAutoresizeGuest)3667 if (!mAutoresizeGuest) 3670 3668 setMinimumSize (sizeHint()); 3671 3669 else -
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.