Changeset 59507 in vbox
- Timestamp:
- Jan 28, 2016 12:58:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r59094 r59507 2319 2319 vboxGlobal().availableGeometry(); 2320 2320 2321 /* In Windows Qt fails to reposition out of screen window properly, so moving to centre: */ 2322 #ifdef Q_WS_WIN 2321 2323 /* Make sure resulting geometry is within current bounds: */ 2322 geometry = geometry.intersected(availableGeometry); 2324 if (fOk && geometry.intersects(availableGeometry)) 2325 geometry.moveCenter(availableGeometry.center()); 2326 #endif /* Q_WS_WIN */ 2323 2327 2324 2328 /* Move default-geometry to screen-geometry' center: */ … … 3523 3527 geometry.setSize(geometry.size().expandedTo(pWidget->minimumSizeHint())); 3524 3528 3525 /* Get screen-geometry [of screen with point (iX, iY) if possible]: */ 3529 /* In Windows Qt fails to reposition out of screen window properly, so moving to centre: */ 3530 #ifdef Q_WS_WIN 3531 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3526 3532 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) : 3527 3533 vboxGlobal().availableGeometry(); 3528 3534 3529 3535 /* Make sure resulting geometry is within current bounds: */ 3530 geometry = geometry.intersected(availableGeometry); 3536 if (fOk && geometry.intersects(availableGeometry)) 3537 geometry.moveCenter(availableGeometry.center()); 3538 #endif /* Q_WS_WIN */ 3531 3539 3532 3540 /* Move default-geometry to pParentWidget' geometry center: */ … … 3675 3683 geometry.setSize(geometry.size().expandedTo(pWidget->minimumSizeHint())); 3676 3684 3677 /* Get screen-geometry [of screen with point (iX, iY) if possible]: */3685 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3678 3686 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) : 3679 3687 vboxGlobal().availableGeometry(); 3680 3688 3689 /* In Windows Qt fails to reposition out of screen window properly, so moving to centre: */ 3690 #ifdef Q_WS_WIN 3681 3691 /* Make sure resulting geometry is within current bounds: */ 3682 geometry = geometry.intersected(availableGeometry); 3692 if (fOk && geometry.intersects(availableGeometry)) 3693 geometry.moveCenter(availableGeometry.center()); 3694 #endif /* Q_WS_WIN */ 3683 3695 3684 3696 /* Move default-geometry to current screen center: */
Note:
See TracChangeset
for help on using the changeset viewer.