Changeset 30543 in vbox
- Timestamp:
- Jun 30, 2010 10:06:01 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63251
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r30542 r30543 1660 1660 #endif 1661 1661 1662 #if 0 // TODO: Where to move that?1663 void UIMachineLogic::setViewInSeamlessMode (const QRect &aTargetRect)1664 {1665 #ifndef Q_WS_MAC1666 /* It isn't guaranteed that the guest os set the video mode that1667 * we requested. So after all the resizing stuff set the clipping1668 * mask and the spacing shifter to the corresponding values. */1669 QDesktopWidget *dtw = QApplication::desktop();1670 QRect sRect = dtw->screenGeometry (this);1671 QRect aRect (aTargetRect);1672 mMaskShift.scale (aTargetRect.left(), aTargetRect.top(), Qt::IgnoreAspectRatio);1673 /* Set the clipping mask */1674 mStrictedRegion = aRect;1675 /* Set the shifting spacer */1676 mShiftingSpacerLeft->changeSize (RT_ABS (sRect.left() - aRect.left()), 0,1677 QSizePolicy::Fixed, QSizePolicy::Preferred);1678 mShiftingSpacerTop->changeSize (0, RT_ABS (sRect.top() - aRect.top()),1679 QSizePolicy::Preferred, QSizePolicy::Fixed);1680 mShiftingSpacerRight->changeSize (RT_ABS (sRect.right() - aRect.right()), 0,1681 QSizePolicy::Fixed, QSizePolicy::Preferred);1682 mShiftingSpacerBottom->changeSize (0, RT_ABS (sRect.bottom() - aRect.bottom()),1683 QSizePolicy::Preferred, QSizePolicy::Fixed);1684 #else // !Q_WS_MAC1685 NOREF (aTargetRect);1686 #endif // !Q_WS_MAC1687 }1688 #endif1689 1690 1662 #include "UIMachineLogic.moc" 1691 1663 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r30542 r30543 226 226 /* Friend classes: */ 227 227 friend class UIMachineWindow; 228 229 #if 0 // TODO: Where to move that?230 void setViewInSeamlessMode(const QRect &aTargetRect);231 #endif232 228 }; 233 229
Note:
See TracChangeset
for help on using the changeset viewer.